replace shorts with MxS16/MxU16/undefined2

This commit is contained in:
itsmattkc 2023-07-02 02:07:11 -07:00
parent 5d099115fe
commit 8fa45bbe0f
14 changed files with 31 additions and 28 deletions

View file

@ -27,13 +27,13 @@ MxResult LegoGameState::Save(MxULong p)
}
// OFFSET: LEGO1 0x1003a2e0
void LegoGameState::SerializePlayersInfo(short p)
void LegoGameState::SerializePlayersInfo(MxS16 p)
{
// TODO
}
// OFFSET: LEGO1 0x1003cdd0
void LegoGameState::SerializeScoreHistory(short p)
void LegoGameState::SerializeScoreHistory(MxS16 p)
{
// TODO
}

View file

@ -10,8 +10,8 @@ class LegoGameState
__declspec(dllexport) ~LegoGameState();
__declspec(dllexport) MxResult Load(MxULong);
__declspec(dllexport) MxResult Save(MxULong p);
__declspec(dllexport) void SerializePlayersInfo(short p);
__declspec(dllexport) void SerializeScoreHistory(short p);
__declspec(dllexport) void SerializePlayersInfo(MxS16 p);
__declspec(dllexport) void SerializeScoreHistory(MxS16 p);
__declspec(dllexport) void SetSavePath(char *p);
};

View file

@ -112,7 +112,7 @@ MxBackgroundAudioManager *BackgroundAudioManager()
}
// OFFSET: LEGO1 0x100c0280 STUB
MxDSObject *CreateStreamObject(MxDSFile *,short)
MxDSObject *CreateStreamObject(MxDSFile *,MxS16)
{
// TODO
return NULL;

View file

@ -95,7 +95,7 @@ class LegoOmni : public MxOmni
};
__declspec(dllexport) MxBackgroundAudioManager * BackgroundAudioManager();
__declspec(dllexport) MxDSObject * CreateStreamObject(MxDSFile *,short);
__declspec(dllexport) MxDSObject * CreateStreamObject(MxDSFile *,MxS16);
__declspec(dllexport) LegoGameState * GameState();
__declspec(dllexport) const char * GetNoCD_SourceName();
__declspec(dllexport) LegoInputManager * InputManager();

View file

@ -41,11 +41,11 @@ class MxDSFile : public MxDSSource
, streamBuffersNum(0)
{}
unsigned short majorVersion;
unsigned short minorVersion;
MxU16 majorVersion;
MxU16 minorVersion;
MxULong bufferSize;
short streamBuffersNum;
short reserved;
MxS16 streamBuffersNum;
MxS16 reserved;
};
MxString m_filename;

View file

@ -111,7 +111,7 @@ unsigned int MxDSObject::CalculateUnk08()
}
// OFFSET: LEGO1 0x100bfa20
void MxDSObject::Parse(char **p_source, unsigned short p_unk24)
void MxDSObject::Parse(char **p_source, MxU16 p_unk24)
{
this->SetSourceName(*p_source);
*p_source += strlen(this->m_sourceName) + 1;

View file

@ -25,7 +25,7 @@ class MxDSObject : public MxCore
virtual int unk14(); // vtable+14;
virtual unsigned int CalculateUnk08(); // vtable+18;
virtual void Parse(char **p_source, unsigned short p_unk24); // vtable+1c;
virtual void Parse(char **p_source, MxU16 p_unk24); // vtable+1c;
void SetSourceName(const char *p_sourceName);
@ -33,7 +33,7 @@ class MxDSObject : public MxCore
inline int GetUnknown1c() { return this->m_unk1c; }
inline void SetUnknown1c(int p_unk1c) { this->m_unk1c = p_unk1c; }
inline void SetUnknown24(short p_unk24) { this->m_unk24 = p_unk24; }
inline void SetUnknown24(MxS16 p_unk24) { this->m_unk24 = p_unk24; }
// OFFSET: ISLE 0x401c40
// OFFSET: LEGO1 0x10005530
@ -41,14 +41,14 @@ class MxDSObject : public MxCore
private:
unsigned int m_unk08;
short m_unk0c;
MxS16 m_unk0c;
char* m_sourceName;
int m_unk14;
char *m_objectName;
int m_unk1c;
MxAtomId m_atomId;
short m_unk24;
unsigned short m_unk26;
MxS16 m_unk24;
MxU16 m_unk26;
int m_unk28;
};

View file

@ -13,7 +13,7 @@ MXIOINFO::~MXIOINFO()
}
// OFFSET: LEGO1 0x100cc830
unsigned short MXIOINFO::Open(const char *filename, DWORD fdwOpen)
MxU16 MXIOINFO::Open(const char *filename, DWORD fdwOpen)
{
return 0;
}
@ -43,7 +43,7 @@ void MXIOINFO::SetBuffer(LPSTR pchBuffer, LONG cchBuffer, LONG unk)
}
// OFFSET: LEGO1 0x100cce60
unsigned short MXIOINFO::Descend(LPMMCKINFO pmmcki, const MMCKINFO *pmmckiParent, UINT fuDescend)
MxU16 MXIOINFO::Descend(LPMMCKINFO pmmcki, const MMCKINFO *pmmckiParent, UINT fuDescend)
{
return 0;
}
}

View file

@ -12,12 +12,12 @@ class MXIOINFO
MXIOINFO();
__declspec(dllexport) ~MXIOINFO();
unsigned short Open(const char *filename, DWORD fdwOpen);
MxU16 Open(const char *filename, DWORD fdwOpen);
void Close(MxLong arg);
LONG Seek(LONG lOffset, int iOrigin);
MxULong Read(HPSTR pch, LONG cch);
void SetBuffer(LPSTR pchBuffer, LONG cchBuffer, LONG unk);
unsigned short Descend(LPMMCKINFO pmmcki, const MMCKINFO *pmmckiParent, UINT fuDescend);
MxU16 Descend(LPMMCKINFO pmmcki, const MMCKINFO *pmmckiParent, UINT fuDescend);
MMIOINFO m_info;
};

View file

@ -7,7 +7,7 @@ MxStreamer::~MxStreamer()
}
// OFFSET: LEGO1 0x100b92c0 STUB
MxStreamController *MxStreamer::Open(const char *name, unsigned short p)
MxStreamController *MxStreamer::Open(const char *name, MxU16 p)
{
// TODO
return NULL;

View file

@ -11,7 +11,7 @@ class MxStreamer : public MxCore
public:
virtual ~MxStreamer() override;
__declspec(dllexport) MxStreamController *Open(const char *name, unsigned short p);
__declspec(dllexport) MxStreamController *Open(const char *name, MxU16 p);
__declspec(dllexport) MxLong Close(const char *p);
virtual MxLong Notify(MxParam &p) override; // vtable+0x4

View file

@ -23,7 +23,7 @@ class MxString : public MxCore
private:
char *m_data;
unsigned short m_length;
MxU16 m_length;
};

View file

@ -3,6 +3,7 @@
DECOMP_SIZE_ASSERT(MxVideoPresenter, 0x64);
// OFFSET: LEGO1 0x100b2760 STUB
void MxVideoPresenter::Init() {
void MxVideoPresenter::Init()
{
// TODO
}

View file

@ -8,9 +8,11 @@
class MxVideoPresenter : public MxMediaPresenter
{
public:
MxVideoPresenter() {
MxVideoPresenter()
{
Init();
}
// OFFSET: LEGO1 0x1000c820
inline virtual const char *ClassName() const override // vtable+0x0c
{
@ -29,9 +31,9 @@ class MxVideoPresenter : public MxMediaPresenter
undefined4 m_unk50;
undefined4 m_unk54;
undefined4 m_unk58;
short m_unk5c;
undefined2 m_unk5c;
unsigned char m_flags;
int m_unk60;
undefined4 m_unk60;
};
#endif // MXVIDEOPRESENTER_H