mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
Implementing RegistrationBook::RegistrationBook()
and removing this->
from Gasstation.cpp
(#508)
* Implementing RegistrationBook::RegistrationBook() * Update registrationbook.h * Update registrationbook.h * Removing this keyword * TESTING: fixing the format errors * Update registrationbook.cpp * Update registrationbook.h * Update registrationbook.h * Update registrationbook.h * Update registrationbook.h * TEST fixing format errors * Update registrationbook.h * Update registrationbook.h * Removing this-> from gasstation.cpp * Fix outstanding issues, match function --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
parent
ac8ddca405
commit
d324fd664a
3 changed files with 54 additions and 13 deletions
|
@ -33,6 +33,27 @@ class RegistrationBook : public LegoWorld {
|
|||
|
||||
// SYNTHETIC: LEGO1 0x10076f30
|
||||
// RegistrationBook::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
undefined4 m_unk0xf8; // 0xf8
|
||||
undefined m_unk0xfc; // 0xfc
|
||||
undefined m_unk0xfd[3]; // 0xfd
|
||||
undefined m_unk0x100[0x68]; // 0x100
|
||||
undefined m_unk0x168[0x118]; // 0x168
|
||||
struct {
|
||||
undefined4 m_unk0x00[3]; // 0x00
|
||||
undefined2 m_unk0x0c; // 0x0c
|
||||
undefined2 m_unk0x0e; // 0x0e
|
||||
} m_unk0x280; // 0x280
|
||||
undefined m_unk0x290[0x28]; // 0x290
|
||||
undefined2 m_unk0x2b8; // 0x2b8
|
||||
undefined4 m_unk0x2bc; // 0x2bc
|
||||
undefined m_unk0x2c0; // 0x2c0
|
||||
undefined m_unk0x2c1; // 0x2c1
|
||||
undefined m_unk0x2c2[0x02]; // 0x2c2
|
||||
undefined4 m_unk0x2c4; // 0x2c4
|
||||
undefined4 m_unk0x2c8; // 0x2c8
|
||||
undefined4 m_unk0x2cc; // 0x2cc
|
||||
};
|
||||
|
||||
#endif // REGISTRATIONBOOK_H
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
// FUNCTION: LEGO1 0x100046a0
|
||||
GasStation::GasStation()
|
||||
{
|
||||
this->m_unk0xf8 = 0;
|
||||
this->m_unk0x100 = 0;
|
||||
this->m_unk0xfc = 0;
|
||||
this->m_unk0x108 = 0;
|
||||
this->m_unk0x104 = 0;
|
||||
this->m_unk0x114 = 0;
|
||||
this->m_unk0x106 = 0;
|
||||
this->m_unk0x10c = 0;
|
||||
this->m_unk0x115 = 0;
|
||||
this->m_unk0x110 = 0;
|
||||
m_unk0xf8 = 0;
|
||||
m_unk0x100 = 0;
|
||||
m_unk0xfc = 0;
|
||||
m_unk0x108 = 0;
|
||||
m_unk0x104 = 0;
|
||||
m_unk0x114 = 0;
|
||||
m_unk0x106 = 0;
|
||||
m_unk0x10c = 0;
|
||||
m_unk0x115 = 0;
|
||||
m_unk0x110 = 0;
|
||||
|
||||
NotificationManager()->Register(this);
|
||||
}
|
||||
|
|
|
@ -1,11 +1,31 @@
|
|||
#include "registrationbook.h"
|
||||
|
||||
#include "legoomni.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
|
||||
// STUB: LEGO1 0x10076d20
|
||||
RegistrationBook::RegistrationBook()
|
||||
DECOMP_SIZE_ASSERT(RegistrationBook, 0x2d0)
|
||||
|
||||
// FUNCTION: LEGO1 0x10076d20
|
||||
RegistrationBook::RegistrationBook() : m_unk0xf8(0x80000000), m_unk0xfc(1)
|
||||
{
|
||||
// TODO
|
||||
memset(m_unk0x100, 0, sizeof(m_unk0x100));
|
||||
memset(m_unk0x168, 0, sizeof(m_unk0x168));
|
||||
|
||||
// Maybe not be part of the struct, but then it would need packing
|
||||
m_unk0x280.m_unk0x0e = 0;
|
||||
|
||||
memset(m_unk0x290, 0, sizeof(m_unk0x290));
|
||||
memset(&m_unk0x280, -1, sizeof(m_unk0x280) - 2);
|
||||
|
||||
m_unk0x2b8 = 0;
|
||||
m_unk0x2bc = 0;
|
||||
|
||||
NotificationManager()->Register(this);
|
||||
|
||||
m_unk0x2c1 = 0;
|
||||
m_unk0x2c4 = 0;
|
||||
m_unk0x2c8 = 0;
|
||||
m_unk0x2cc = 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10076f50
|
||||
|
|
Loading…
Reference in a new issue