Bootstrap MxSmack (#343)

* Bootstrap MxSmack

* Add comment about incorrect structure

* Fix naming

* Fix name

* Add a comment about SDK

* Add names from Smacker SDK

* Use SMACK.LIB and interface

* Use RAD.H defined types

* Use different commets

* Fix member offset

* Update mxsmack.cpp
This commit is contained in:
Christian Semmler
2023-12-20 20:07:48 -05:00
committed by GitHub
parent 994d17a85e
commit db60467ba3
9 changed files with 914 additions and 110 deletions

View File

@@ -2,10 +2,9 @@
#define MXSMKPRESENTER_H
#include "decomp.h"
#include "mxsmack.h"
#include "mxvideopresenter.h"
#include <smk.h>
// VTABLE: LEGO1 0x100dc348
// SIZE 0x720
class MxSmkPresenter : public MxVideoPresenter {
@@ -31,32 +30,14 @@ public:
virtual void CreateBitmap() override; // vtable+0x60
virtual void LoadFrame(MxStreamChunk* p_chunk) override; // vtable+0x68
virtual void RealizePalette() override; // vtable+0x70
virtual MxU32 VTable0x88(); // vtable+0x88
struct MxSmack {
Smack m_smack;
// Unknown for the time being. Not an immediately
// recognizable part of the SMK standard...
undefined m_unk0x3f4[784];
undefined4* m_unk0x6a0;
undefined4* m_unk0x6a4;
undefined4* m_unk0x6a8;
undefined4* m_unk0x6ac;
undefined4* m_unk0x6b0;
undefined4* m_unk0x6b4;
};
MxSmack m_mxSmack;
undefined4 m_unk0x71c;
virtual void VTable0x88(); // vtable+0x88
private:
void Init();
void Destroy(MxBool p_fromDestructor);
// This should most likely be in a separate translation unit
static void FUN_100c5d40(MxSmack* p_mxSmack);
MxSmack m_mxSmack; // 0x64
undefined4 m_unk0x71c; // 0x71c
};
#endif // MXSMKPRESENTER_H