2023-06-29 04:10:08 -04:00
|
|
|
#include "legostate.h"
|
|
|
|
|
2023-10-16 14:17:23 -04:00
|
|
|
DECOMP_SIZE_ASSERT(LegoState, 0x08);
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// OFFSET: LEGO1 0x10005f40
|
|
|
|
LegoState::~LegoState()
|
|
|
|
{
|
|
|
|
}
|
2023-07-02 02:53:54 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10005f90
|
|
|
|
MxBool LegoState::VTable0x14() {
|
|
|
|
return TRUE;
|
|
|
|
}
|
2023-10-16 16:18:35 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10005fa0
|
|
|
|
MxBool LegoState::VTable0x18() {
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10005fb0
|
2023-10-17 18:05:31 -04:00
|
|
|
MxResult LegoState::VTable0x1C(LegoFileStream *p_legoFileStream)
|
2023-10-16 16:18:35 -04:00
|
|
|
{
|
2023-10-17 18:05:31 -04:00
|
|
|
if (p_legoFileStream->IsWriteMode()) {
|
|
|
|
p_legoFileStream->FUN_10006030(this->ClassName());
|
2023-10-16 16:18:35 -04:00
|
|
|
}
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
2023-10-17 18:05:31 -04:00
|
|
|
// OFFSET: LEGO1 0x10006030
|
|
|
|
LegoFileStream *LegoFileStream::FUN_10006030(MxString p_str)
|
2023-10-16 16:18:35 -04:00
|
|
|
{
|
2023-10-17 18:05:31 -04:00
|
|
|
const char *data = p_str.GetData();
|
|
|
|
MxU32 fullLength = strlen(data);
|
|
|
|
|
|
|
|
MxU16 limitedLength = fullLength;
|
|
|
|
Write(&limitedLength, sizeof(limitedLength));
|
|
|
|
Write(data, (MxS16) fullLength);
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|