mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
42 lines
790 B
C++
42 lines
790 B
C++
#include "legostate.h"
|
|
|
|
DECOMP_SIZE_ASSERT(LegoState, 0x08);
|
|
|
|
// FUNCTION: LEGO1 0x10005f40
|
|
LegoState::~LegoState()
|
|
{
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10005f90
|
|
MxBool LegoState::VTable0x14()
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10005fa0
|
|
MxBool LegoState::SetFlag()
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10005fb0
|
|
MxResult LegoState::VTable0x1c(LegoFileStream* p_legoFileStream)
|
|
{
|
|
if (p_legoFileStream->IsWriteMode()) {
|
|
p_legoFileStream->FUN_10006030(this->ClassName());
|
|
}
|
|
return SUCCESS;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10006030
|
|
LegoFileStream* LegoFileStream::FUN_10006030(MxString p_str)
|
|
{
|
|
const char* data = p_str.GetData();
|
|
MxU32 fullLength = strlen(data);
|
|
|
|
MxU16 limitedLength = fullLength;
|
|
Write(&limitedLength, sizeof(limitedLength));
|
|
Write(data, (MxS16) fullLength);
|
|
|
|
return this;
|
|
}
|