mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
472a82f220
* MxMusicPresenter vtable vtable+0x34 adds the current presenter to the music manager vtable+0x38 calls destroy with the param as "FALSE" * Update mxmusicpresenter.cpp * Update mxmusicpresenter.cpp --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
48 lines
842 B
C++
48 lines
842 B
C++
#include "mxmusicpresenter.h"
|
|
|
|
#include "decomp.h"
|
|
#include "mxmusicmanager.h"
|
|
#include "mxomni.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxMusicPresenter, 0x54);
|
|
|
|
// OFFSET: LEGO1 0x100c22c0
|
|
MxMusicPresenter::MxMusicPresenter()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c24e0
|
|
MxMusicPresenter::~MxMusicPresenter()
|
|
{
|
|
Destroy(TRUE);
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c2540
|
|
void MxMusicPresenter::Init()
|
|
{
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c2550 STUB
|
|
void MxMusicPresenter::Destroy(MxBool)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c25a0
|
|
MxResult MxMusicPresenter::AddToMusicManager()
|
|
{
|
|
MxResult result = FAILURE;
|
|
if (MusicManager()) {
|
|
result = SUCCESS;
|
|
MusicManager()->AddPresenter(*this);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c25d0
|
|
void MxMusicPresenter::vtable38()
|
|
{
|
|
// TODO: Name this function when we know what the argument to Destroy does
|
|
Destroy(FALSE);
|
|
}
|