From 87259860858a1e773e5261ba57defb3e9d4cf630 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sun, 1 Oct 2023 08:49:55 -0400 Subject: [PATCH] MxControlPresenter ctor/structure (#151) * MxControlPresenter ctor/structure * Use undefined types where possible, remove implicit pads --------- Co-authored-by: Christian Semmler --- LEGO1/mxcontrolpresenter.cpp | 11 +++++++++-- LEGO1/mxcontrolpresenter.h | 10 +++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxcontrolpresenter.cpp b/LEGO1/mxcontrolpresenter.cpp index e9e10ef8..7210952c 100644 --- a/LEGO1/mxcontrolpresenter.cpp +++ b/LEGO1/mxcontrolpresenter.cpp @@ -1,7 +1,14 @@ #include "mxcontrolpresenter.h" -// OFFSET: LEGO1 0x10043f50 STUB +DECOMP_SIZE_ASSERT(MxControlPresenter, 0x5c) + +// OFFSET: LEGO1 0x10043f50 MxControlPresenter::MxControlPresenter() { - // TODO + this->m_unk4c = 0; + this->m_unk4e = -1; + this->m_unk50 = 0; + this->m_unk52 = 0; + this->m_unk58 = 0; + this->m_unk54 = 0; } \ No newline at end of file diff --git a/LEGO1/mxcontrolpresenter.h b/LEGO1/mxcontrolpresenter.h index 909a3502..18af66a3 100644 --- a/LEGO1/mxcontrolpresenter.h +++ b/LEGO1/mxcontrolpresenter.h @@ -1,6 +1,8 @@ #ifndef MXCONTROLPRESENTER_H #define MXCONTROLPRESENTER_H +#include "decomp.h" + #include "mxcompositepresenter.h" // VTABLE 0x100d7b88 @@ -22,7 +24,13 @@ class MxControlPresenter : public MxCompositePresenter { return !strcmp(name, MxControlPresenter::ClassName()) || MxCompositePresenter::IsA(name); } - +private: + undefined2 m_unk4c; + MxS16 m_unk4e; + undefined m_unk50; + undefined2 m_unk52; + undefined2 m_unk54; + undefined4 m_unk58; };