isle/LEGO1/legostate.cpp

43 lines
780 B
C++
Raw Normal View History

#include "legostate.h"
DECOMP_SIZE_ASSERT(LegoState, 0x08);
// OFFSET: LEGO1 0x10005f40
LegoState::~LegoState()
{
}
// OFFSET: LEGO1 0x10005f90
2023-10-24 19:38:27 -04:00
MxBool LegoState::VTable0x14()
{
return TRUE;
}
// OFFSET: LEGO1 0x10005fa0
2023-10-24 19:38:27 -04:00
MxBool LegoState::SetFlag()
{
return FALSE;
}
// OFFSET: LEGO1 0x10005fb0
2023-10-24 19:38:27 -04:00
MxResult LegoState::VTable0x1C(LegoFileStream* p_legoFileStream)
{
2023-10-24 19:38:27 -04:00
if (p_legoFileStream->IsWriteMode()) {
p_legoFileStream->FUN_10006030(this->ClassName());
}
return SUCCESS;
}
// OFFSET: LEGO1 0x10006030
2023-10-24 19:38:27 -04:00
LegoFileStream* LegoFileStream::FUN_10006030(MxString p_str)
{
2023-10-24 19:38:27 -04:00
const char* data = p_str.GetData();
MxU32 fullLength = strlen(data);
2023-10-24 19:38:27 -04:00
MxU16 limitedLength = fullLength;
Write(&limitedLength, sizeof(limitedLength));
Write(data, (MxS16) fullLength);
2023-10-24 19:38:27 -04:00
return this;
}