From 3e7cb6a7a8140064455c27574c7f5d43642a27b1 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Mon, 11 Sep 2023 13:43:55 -0400 Subject: [PATCH] Init functions in MxMediaPresenter and LegoPalettePresenter (#121) * Match MxMediaPresenter::Init * LegoPalettePresenter::Init() * LegoPalettePresenter: for now, use undefined4 type --- LEGO1/legopalettepresenter.cpp | 6 ++++-- LEGO1/legopalettepresenter.h | 2 ++ LEGO1/mxmediapresenter.cpp | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/LEGO1/legopalettepresenter.cpp b/LEGO1/legopalettepresenter.cpp index 07b9cb99..575ada4a 100644 --- a/LEGO1/legopalettepresenter.cpp +++ b/LEGO1/legopalettepresenter.cpp @@ -1,5 +1,7 @@ #include "legopalettepresenter.h" +DECOMP_SIZE_ASSERT(LegoPalettePresenter, 0x68) + // OFFSET: LEGO1 0x10079e50 LegoPalettePresenter::LegoPalettePresenter() { @@ -12,8 +14,8 @@ LegoPalettePresenter::~LegoPalettePresenter() // TODO } -// OFFSET: LEGO1 0x1007a0d0 STUB +// OFFSET: LEGO1 0x1007a0d0 void LegoPalettePresenter::Init() { - // TODO + this->m_unk64 = 0; } diff --git a/LEGO1/legopalettepresenter.h b/LEGO1/legopalettepresenter.h index d5fbefba..4cdda5ab 100644 --- a/LEGO1/legopalettepresenter.h +++ b/LEGO1/legopalettepresenter.h @@ -1,6 +1,7 @@ #ifndef LEGOPALETTEPRESENTER_H #define LEGOPALETTEPRESENTER_H +#include "decomp.h" #include "mxvideopresenter.h" // VTABLE 0x100d9aa0 @@ -27,6 +28,7 @@ class LegoPalettePresenter : public MxVideoPresenter private: void Init(); + undefined4 m_unk64; }; diff --git a/LEGO1/mxmediapresenter.cpp b/LEGO1/mxmediapresenter.cpp index 58c068ac..31e68abc 100644 --- a/LEGO1/mxmediapresenter.cpp +++ b/LEGO1/mxmediapresenter.cpp @@ -9,8 +9,11 @@ MxLong MxMediaPresenter::Tickle() return 0; } -// OFFSET: LEGO1 0x100b54e0 STUB +// OFFSET: LEGO1 0x100b54e0 void MxMediaPresenter::Init() { - // TODO + this->m_unk40 = NULL; + this->m_unk44 = NULL; + this->m_unk48 = NULL; + this->m_unk4c = NULL; }