mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Reorganize sources and files (#414)
* Reorganize sources * Refactor * Remove relative paths * Renames * Fix gitignore * Remove stuff * Try fixing format script * Fix format * Fix format * Fix naming script * Test format * Fix format
This commit is contained in:

committed by
GitHub

parent
6a85e62406
commit
c47206617d
42
LEGO1/lego/legoomni/src/common/legostate.cpp
Normal file
42
LEGO1/lego/legoomni/src/common/legostate.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user