Fix outstanding issues, match function

This commit is contained in:
Christian Semmler 2024-02-04 10:25:04 -05:00
parent 2e70d642d7
commit abeea5b3de
2 changed files with 35 additions and 28 deletions

View File

@ -35,23 +35,25 @@ class RegistrationBook : public LegoWorld {
// RegistrationBook::`scalar deleting destructor' // RegistrationBook::`scalar deleting destructor'
private: private:
undefined4 m_unk0xf8; // 0xf8 undefined4 m_unk0xf8; // 0xf8
undefined m_unk0xfc; // 0xfc undefined m_unk0xfc; // 0xfc
undefined m_unk0xfd[0x183]; // 0xfd undefined m_unk0xfd[3]; // 0xfd
undefined4 m_unk0x280; // 0x280 undefined m_unk0x100[0x68]; // 0x100
undefined4 m_unk0x284; // 0x284 undefined m_unk0x168[0x118]; // 0x168
undefined4 m_unk0x288; // 0x288 struct {
undefined2 m_unk0x28c; // 0x28c undefined4 m_unk0x00[3]; // 0x00
undefined2 m_unk0x28e; // 0x28e undefined2 m_unk0x0c; // 0x0c
undefined m_unk0x290[0x28]; // 0x290 undefined2 m_unk0x0e; // 0x0e
undefined2 m_unk0x2b8; // 0x2b8 } m_unk0x280; // 0x280
undefined m_unk0x2ba[0x02]; // 0x2ba undefined m_unk0x290[0x28]; // 0x290
undefined4 m_unk0x2bc; // 0x2bc undefined2 m_unk0x2b8; // 0x2b8
undefined m_unk0x2c1; // 0x2c1 undefined4 m_unk0x2bc; // 0x2bc
undefined m_unk0x2c2[0x02]; // 0x2c2 undefined m_unk0x2c0; // 0x2c0
undefined4 m_unk0x2c4; // 0x2c4 undefined m_unk0x2c1; // 0x2c1
undefined4 m_unk0x2c8; // 0x2c8 undefined m_unk0x2c2[0x02]; // 0x2c2
undefined4 m_unk0x2cc; // 0x2cc undefined4 m_unk0x2c4; // 0x2c4
undefined4 m_unk0x2c8; // 0x2c8
undefined4 m_unk0x2cc; // 0x2cc
}; };
#endif // REGISTRATIONBOOK_H #endif // REGISTRATIONBOOK_H

View File

@ -3,24 +3,29 @@
#include "legoomni.h" #include "legoomni.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
// STUB: LEGO1 0x10076d20 DECOMP_SIZE_ASSERT(RegistrationBook, 0x2d0)
RegistrationBook::RegistrationBook()
// FUNCTION: LEGO1 0x10076d20
RegistrationBook::RegistrationBook() : m_unk0xf8(0x80000000), m_unk0xfc(1)
{ {
m_unk0xf8 = 0x80000000; memset(m_unk0x100, 0, sizeof(m_unk0x100));
m_unk0xfc = 1; memset(m_unk0x168, 0, sizeof(m_unk0x168));
m_unk0x28e = 0;
m_unk0x280 = -1; // Maybe not be part of the struct, but then it would need packing
m_unk0x284 = -1; m_unk0x280.m_unk0x0e = 0;
m_unk0x288 = -1;
m_unk0x28c = -1; memset(m_unk0x290, 0, sizeof(m_unk0x290));
memset(&m_unk0x280, -1, sizeof(m_unk0x280) - 2);
m_unk0x2b8 = 0; m_unk0x2b8 = 0;
m_unk0x2bc = 0; m_unk0x2bc = 0;
NotificationManager()->Register(this);
m_unk0x2c1 = 0; m_unk0x2c1 = 0;
m_unk0x2c4 = 0; m_unk0x2c4 = 0;
m_unk0x2c8 = 0; m_unk0x2c8 = 0;
m_unk0x2cc = 0; m_unk0x2cc = 0;
NotificationManager()->Register(this);
} }
// STUB: LEGO1 0x10076f50 // STUB: LEGO1 0x10076f50