From 796ce9bce7a243169b5c0dfbccaf4dc927c51736 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 2 Jul 2023 15:07:07 +0200 Subject: [PATCH] fix types --- LEGO1/mxdsobject.cpp | 6 +++--- LEGO1/mxdsobject.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/LEGO1/mxdsobject.cpp b/LEGO1/mxdsobject.cpp index 40acfbc5..2b478b88 100644 --- a/LEGO1/mxdsobject.cpp +++ b/LEGO1/mxdsobject.cpp @@ -85,15 +85,15 @@ void MxDSObject::SetSourceName(const char *p_sourceName) } // OFFSET: LEGO1 0x100bf9c0 -int MxDSObject::unk14() +undefined4 MxDSObject::unk14() { return 10; } // OFFSET: LEGO1 0x100bf9d0 -unsigned int MxDSObject::CalculateUnk08() +MxU32 MxDSObject::CalculateUnk08() { - unsigned int unk08; + MxU32 unk08; if (this->m_sourceName) unk08 = strlen(this->m_sourceName) + 3; diff --git a/LEGO1/mxdsobject.h b/LEGO1/mxdsobject.h index 7c767480..a13f382f 100644 --- a/LEGO1/mxdsobject.h +++ b/LEGO1/mxdsobject.h @@ -27,14 +27,14 @@ class MxDSObject : public MxCore // OFFSET: LEGO1 0x100bf740 inline virtual MxBool IsA(const char *name) const override { return !strcmp(name, MxDSObject::ClassName()) || MxCore::IsA(name); }; // vtable+10; - virtual int unk14(); // vtable+14; - virtual unsigned int CalculateUnk08(); // vtable+18; + virtual undefined4 unk14(); // vtable+14; + virtual MxU32 CalculateUnk08(); // vtable+18; virtual void Parse(char **p_source, MxS16 p_unk24); // vtable+1c; inline const MxAtomId& GetAtomId() { return this->m_atomId; } - inline int GetUnknown1c() { return this->m_unk1c; } + inline undefined4 GetUnknown1c() { return this->m_unk1c; } - inline void SetUnknown1c(int p_unk1c) { this->m_unk1c = p_unk1c; } + inline void SetUnknown1c(undefined4 p_unk1c) { this->m_unk1c = p_unk1c; } inline void SetUnknown24(MxS16 p_unk24) { this->m_unk24 = p_unk24; } // OFFSET: ISLE 0x401c40 @@ -45,7 +45,7 @@ class MxDSObject : public MxCore inline void SetType(MxDSType p_type) { this->m_type = p_type; } private: - undefined4 m_unk08; + MxU32 m_unk08; MxU16 m_type; char* m_sourceName; undefined4 m_unk14;