From f4b006a8af0a9ddbf8da237cc8ba4b8a547dbe79 Mon Sep 17 00:00:00 2001 From: Ramen2X <64166386+Ramen2X@users.noreply.github.com> Date: Wed, 18 Oct 2023 21:58:16 -0400 Subject: [PATCH] implement/match ScoreState vtable --- LEGO1/scorestate.cpp | 12 ++++++++++++ LEGO1/scorestate.h | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/LEGO1/scorestate.cpp b/LEGO1/scorestate.cpp index 826ab482..6d389b38 100644 --- a/LEGO1/scorestate.cpp +++ b/LEGO1/scorestate.cpp @@ -1 +1,13 @@ #include "scorestate.h" + +// OFFSET: LEGO1 0x1000de20 +MxBool ScoreState::VTable0x14() { + return FALSE; +} + +// OFFSET: LEGO1 0x1000de30 +MxBool ScoreState::VTable0x18() +{ + m_unk0x08 = TRUE; + return TRUE; +} diff --git a/LEGO1/scorestate.h b/LEGO1/scorestate.h index 4f5a8dc2..3fd0a9ce 100644 --- a/LEGO1/scorestate.h +++ b/LEGO1/scorestate.h @@ -21,6 +21,11 @@ class ScoreState : public LegoState return !strcmp(name, ScoreState::ClassName()) || LegoState::IsA(name); }; + virtual MxBool VTable0x14() override; // vtable+0x14 + virtual MxBool VTable0x18() override; // vtable+0x18 + +private: + MxBool m_unk0x08; }; #endif // SCORESTATE_H