MxFlcPresenter: vtable70

This commit is contained in:
Joshua Peisach 2023-11-18 18:06:33 -05:00
parent 93eb4dc82d
commit 679bbcfbc2
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 16 additions and 0 deletions

View File

@ -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::vtable70()
{
MxPalette* pal = m_bitmap->CreatePalette();
MVideoManager()->RealizePalette(pal);
if (pal) {
delete pal;
}
}

View File

@ -24,6 +24,8 @@ class MxFlcPresenter : public MxVideoPresenter {
return !strcmp(name, MxFlcPresenter::ClassName()) || MxVideoPresenter::IsA(name);
}
virtual void vtable70() override; // vtable+0x74
undefined4* m_unk64;
};