mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
494a556f8e
* Adjustments to "decomp" language * Fix a comment * Fix accidental clang-formatting * Fix order * Fix order * Remove junk * Fix OFFSET * Adjustments based on new suggestions * Annotate globals * Globals in ISLE * More globals * Merge from parser2 branch * Allow prepending space for exact marker match * To eliminate noise, require the 0x prefix on offset for marker match * fix test from previous * Count tab stops for indented functions to reduce MISSED_END_OF_FUNCTION noise * FUNCTION to SYNTHETIC where needed * Missed marker conversion on SetAtomId * pylint cleanup, remove unused code * Fix unexpected function end, add more unit tests * Be more strict about synthetic name syntax * Revert "Missed marker conversion on SetAtomId" This reverts commitd87d665127
. * Revert "FUNCTION to SYNTHETIC where needed" This reverts commit8c815418d2
. * Implicit lookup by name for functions * Fix VTABLE SYNTHETIC and other decomp markers * Get vtable class name * Vtable marker should identify struct * No colon for SIZE comment * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update CONTRIBUTING.md * Fix destructor/annotation * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
62 lines
1.6 KiB
C++
62 lines
1.6 KiB
C++
#ifndef MXSMKPRESENTER_H
|
|
#define MXSMKPRESENTER_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxvideopresenter.h"
|
|
|
|
#include <smk.h>
|
|
|
|
// VTABLE: LEGO1 0x100dc348
|
|
// SIZE 0x720
|
|
class MxSmkPresenter : public MxVideoPresenter {
|
|
public:
|
|
MxSmkPresenter();
|
|
virtual ~MxSmkPresenter() override;
|
|
|
|
// FUNCTION: LEGO1 0x100b3730
|
|
inline virtual const char* ClassName() const override // vtable+0xc
|
|
{
|
|
// GLOBAL: LEGO1 0x10101e38
|
|
return "MxSmkPresenter";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100b3740
|
|
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(name, MxSmkPresenter::ClassName()) || MxVideoPresenter::IsA(name);
|
|
}
|
|
|
|
virtual void Destroy() override; // vtable+0x38
|
|
virtual void LoadHeader(MxStreamChunk* p_chunk) override; // vtable+0x5c
|
|
virtual void CreateBitmap() override; // vtable+0x60
|
|
virtual void LoadFrame(MxStreamChunk* p_chunk) override; // vtable+0x68
|
|
virtual void VTable0x70() 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;
|
|
|
|
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);
|
|
};
|
|
|
|
#endif // MXSMKPRESENTER_H
|