From 0ab5da9055015f10696c1b5a382c49900b532601 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sun, 23 Jul 2023 16:56:46 -0400 Subject: [PATCH] Update types/add needed type in LegoPathActor for Pizza Yes, this is a recommit because last time I pushed my cmake dir --- LEGO1/islepathactor.cpp | 4 ++-- LEGO1/islepathactor.h | 3 ++- LEGO1/legopathactor.h | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/LEGO1/islepathactor.cpp b/LEGO1/islepathactor.cpp index d1d14bc9..62288f55 100644 --- a/LEGO1/islepathactor.cpp +++ b/LEGO1/islepathactor.cpp @@ -3,8 +3,8 @@ // OFFSET: LEGO1 0x1001a200 IslePathActor::IslePathActor() { - // FIXME: doesnt match - this->m_unk154 = FALSE; + this->m_pLegoWorld = NULL; + this->m_unk13c = 0x40c00000; this->m_fourcc = 0x3f800000; this->m_unk158 = 0; } diff --git a/LEGO1/islepathactor.h b/LEGO1/islepathactor.h index b9c36fc3..6dc4bfc0 100644 --- a/LEGO1/islepathactor.h +++ b/LEGO1/islepathactor.h @@ -2,6 +2,7 @@ #define ISLEPATHACTOR_H #include "legopathactor.h" +#include "legoworld.h" #include "mxtypes.h" // VTABLE 0x100d4398 @@ -26,7 +27,7 @@ class IslePathActor : public LegoPathActor } private: - MxBool m_unk154; + LegoWorld* m_pLegoWorld; // 0x154 MxS32 m_unk158; MxS32 m_fourcc; // 0x15c }; diff --git a/LEGO1/legopathactor.h b/LEGO1/legopathactor.h index e6f643c2..7a2b1402 100644 --- a/LEGO1/legopathactor.h +++ b/LEGO1/legopathactor.h @@ -2,6 +2,7 @@ #define LEGOPATHACTOR_H #include "legoactor.h" +#include "mxtypes.h" // VTABLE 0x100d6e28 // SIZE 0x154 (from inlined construction at 0x1000a346) @@ -25,6 +26,8 @@ class LegoPathActor : public LegoActor return !strcmp(name, LegoPathActor::ClassName()) || LegoActor::IsA(name); } + // TODO: the types. Pizza needs this as public: + MxS32 m_unk13c; }; #endif // LEGOPATHACTOR_H