From b7ee2242b5f2e18ed67df782e9f5c4aaa2c9e0f3 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 1 Dec 2023 11:33:50 -0500 Subject: [PATCH] Add vtable --- LEGO1/mxcompositepresenter.cpp | 32 ++++++++++++++++++++++++++++++++ LEGO1/mxcompositepresenter.h | 13 +++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/LEGO1/mxcompositepresenter.cpp b/LEGO1/mxcompositepresenter.cpp index 8a32b25d..76650f61 100644 --- a/LEGO1/mxcompositepresenter.cpp +++ b/LEGO1/mxcompositepresenter.cpp @@ -43,6 +43,19 @@ MxCompositePresenter::~MxCompositePresenter() NotificationManager()->Unregister(this); } +// OFFSET: LEGO1 0x100b6410 STUB +MxResult MxCompositePresenter::StartAction(MxStreamController*, MxDSAction*) +{ + // TODO + return SUCCESS; +} + +// OFFSET: LEGO1 0x100b65e0 STUB +void MxCompositePresenter::EndAction() +{ + // TODO +} + // OFFSET: LEGO1 0x100b67f0 STUB void MxCompositePresenter::VTable0x58() { @@ -73,3 +86,22 @@ void MxCompositePresenter::VTable0x60(MxPresenter* p_presenter) } } } + +// OFFSET: LEGO1 0x100b6bc0 STUB +void MxCompositePresenter::SetTickleState(TickleState p_tickleState) +{ + // TODO +} + +// OFFSET: LEGO1 0x100b6c30 STUB +void MxCompositePresenter::Enable(MxBool p_enable) +{ + // TODO +} + +// OFFSET: LEGO1 0x100b6c80 STUB +MxBool MxCompositePresenter::HasTickleStatePassed(TickleState p_tickleState) +{ + // TODO + return TRUE; +} diff --git a/LEGO1/mxcompositepresenter.h b/LEGO1/mxcompositepresenter.h index efac9625..49f5d6c6 100644 --- a/LEGO1/mxcompositepresenter.h +++ b/LEGO1/mxcompositepresenter.h @@ -24,10 +24,15 @@ class MxCompositePresenter : public MxPresenter { return !strcmp(name, MxCompositePresenter::ClassName()) || MxPresenter::IsA(name); } - virtual void VTable0x58(); - virtual void VTable0x5c(); - virtual void VTable0x60(MxPresenter* p_presenter); - virtual MxBool VTable0x64(undefined4 p_unknown); + virtual MxResult StartAction(MxStreamController*, MxDSAction*) override; // vtable+0x3c + virtual void EndAction() override; // vtable+0x40 + virtual void SetTickleState(TickleState p_tickleState) override; // vtable+0x44 + virtual MxBool HasTickleStatePassed(TickleState p_tickleState) override; // vtable+0x48 + virtual void Enable(MxBool p_enable) override; // vtable+0x54 + virtual void VTable0x58(); // vtable+0x58 + virtual void VTable0x5c(); // vtable+0x5c + virtual void VTable0x60(MxPresenter* p_presenter); // vtable+0x60 + virtual MxBool VTable0x64(undefined4 p_unknown); // vtable+0x64 private: MxCompositePresenterList m_list;