mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Fixes
This commit is contained in:
parent
945d809e46
commit
d26056cc40
@ -1,7 +1,10 @@
|
|||||||
#include "legobox.h"
|
#include "legobox.h"
|
||||||
|
|
||||||
|
#include "decomp.h"
|
||||||
#include "misc/legoutil.h"
|
#include "misc/legoutil.h"
|
||||||
|
|
||||||
|
DECOMP_SIZE_ASSERT(LegoBox, 0x18)
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100d3740
|
// FUNCTION: LEGO1 0x100d3740
|
||||||
LegoResult LegoBox::Read(LegoStorage* p_storage)
|
LegoResult LegoBox::Read(LegoStorage* p_storage)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
#include "legosphere.h"
|
#include "legosphere.h"
|
||||||
|
|
||||||
|
#include "decomp.h"
|
||||||
#include "misc/legostorage.h"
|
#include "misc/legostorage.h"
|
||||||
|
|
||||||
|
DECOMP_SIZE_ASSERT(LegoSphere, 0x10)
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100d3770
|
// FUNCTION: LEGO1 0x100d3770
|
||||||
LegoResult LegoSphere::Read(LegoStorage* p_storage)
|
LegoResult LegoSphere::Read(LegoStorage* p_storage)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
#include "legovertex.h"
|
#include "legovertex.h"
|
||||||
|
|
||||||
|
#include "decomp.h"
|
||||||
#include "misc/legostorage.h"
|
#include "misc/legostorage.h"
|
||||||
|
|
||||||
|
DECOMP_SIZE_ASSERT(LegoVertex, 0x0c)
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100d37b0
|
// FUNCTION: LEGO1 0x100d37b0
|
||||||
LegoVertex::LegoVertex()
|
LegoVertex::LegoVertex()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -175,9 +175,10 @@ LegoResult LegoROI::Read(
|
|||||||
|
|
||||||
if (m_unk0x100) {
|
if (m_unk0x100) {
|
||||||
for (roiLength = strlen(m_name); roiLength; roiLength--) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
roiName = new LegoChar[roiLength + 1];
|
roiName = new LegoChar[roiLength + 1];
|
||||||
memcpy(roiName, m_name, roiLength);
|
memcpy(roiName, m_name, roiLength);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user