mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
e7b5ea53df
Was intended as a simple code improvement, however it also seems to make WinMain, MxString::operator=, MxDSFile::Open 100% (all of which just needed registers to be switched around)
36 lines
657 B
C++
36 lines
657 B
C++
#include "mxvideomanager.h"
|
|
|
|
// OFFSET: LEGO1 0x100be1f0
|
|
MxVideoManager::MxVideoManager()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100be320
|
|
int MxVideoManager::Init()
|
|
{
|
|
this->m_unk50 = 0;
|
|
this->m_unk54 = NULL;
|
|
this->m_unk58 = NULL;
|
|
this->m_unk5c = 0;
|
|
this->m_videoParam.SetPalette(NULL);
|
|
this->m_unk60 = FALSE;
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100bebe0
|
|
long MxVideoManager::RealizePalette(MxPalette *p_palette)
|
|
{
|
|
PALETTEENTRY paletteEntries[256];
|
|
|
|
this->m_criticalSection.Enter();
|
|
|
|
if (p_palette && this->m_videoParam.GetPalette())
|
|
{
|
|
p_palette->GetEntries(paletteEntries);
|
|
// TODO
|
|
}
|
|
|
|
this->m_criticalSection.Leave();
|
|
return 0;
|
|
}
|