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; };