This commit is contained in:
Christian Semmler 2024-03-05 12:22:33 -05:00
parent 945d809e46
commit d26056cc40
4 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,10 @@
#include "legobox.h"
#include "decomp.h"
#include "misc/legoutil.h"
DECOMP_SIZE_ASSERT(LegoBox, 0x18)
// FUNCTION: LEGO1 0x100d3740
LegoResult LegoBox::Read(LegoStorage* p_storage)
{

View File

@ -1,7 +1,10 @@
#include "legosphere.h"
#include "decomp.h"
#include "misc/legostorage.h"
DECOMP_SIZE_ASSERT(LegoSphere, 0x10)
// FUNCTION: LEGO1 0x100d3770
LegoResult LegoSphere::Read(LegoStorage* p_storage)
{

View File

@ -1,7 +1,10 @@
#include "legovertex.h"
#include "decomp.h"
#include "misc/legostorage.h"
DECOMP_SIZE_ASSERT(LegoVertex, 0x0c)
// FUNCTION: LEGO1 0x100d37b0
LegoVertex::LegoVertex()
{

View File

@ -175,8 +175,9 @@ LegoResult LegoROI::Read(
if (m_unk0x100) {
for (roiLength = strlen(m_name); roiLength; roiLength--) {
if (m_name[roiLength - 1] < '0' || m_name[roiLength - 1] > '9')
if (m_name[roiLength - 1] < '0' || m_name[roiLength - 1] > '9') {
break;
}
}
roiName = new LegoChar[roiLength + 1];