From 0b0a9a6d6fba71a1ee169b8443a8fd5192febccb Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sun, 19 Nov 2023 07:28:06 -0500 Subject: [PATCH] MxFlcPresenter: vtable70 (#291) * MxFlcPresenter: vtable70 * Fix function --------- Co-authored-by: Christian Semmler --- LEGO1/mxflcpresenter.cpp | 14 ++++++++++++++ LEGO1/mxflcpresenter.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/LEGO1/mxflcpresenter.cpp b/LEGO1/mxflcpresenter.cpp index 5c8c23a5..991e0bbe 100644 --- a/LEGO1/mxflcpresenter.cpp +++ b/LEGO1/mxflcpresenter.cpp @@ -1,6 +1,10 @@ #include "mxflcpresenter.h" #include "decomp.h" +#include "mxbitmap.h" +#include "mxomni.h" +#include "mxpalette.h" +#include "mxvideomanager.h" DECOMP_SIZE_ASSERT(MxFlcPresenter, 0x68); @@ -19,3 +23,13 @@ MxFlcPresenter::~MxFlcPresenter() delete this->m_unk64; } } + +// OFFSET: LEGO1 0x100b3620 +void MxFlcPresenter::VTable0x70() +{ + MxPalette* pal = m_bitmap->CreatePalette(); + MVideoManager()->RealizePalette(pal); + + if (pal) + delete pal; +} diff --git a/LEGO1/mxflcpresenter.h b/LEGO1/mxflcpresenter.h index 99035172..6fcf8973 100644 --- a/LEGO1/mxflcpresenter.h +++ b/LEGO1/mxflcpresenter.h @@ -24,6 +24,8 @@ class MxFlcPresenter : public MxVideoPresenter { return !strcmp(name, MxFlcPresenter::ClassName()) || MxVideoPresenter::IsA(name); } + virtual void VTable0x70() override; // vtable+0x70 + undefined4* m_unk64; };