mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -04:00
MxMusicPresenter vtable (#184)
* 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>
This commit is contained in:
parent
a9fa734844
commit
472a82f220
@ -1,5 +1,11 @@
|
|||||||
#include "mxmusicpresenter.h"
|
#include "mxmusicpresenter.h"
|
||||||
|
|
||||||
|
#include "decomp.h"
|
||||||
|
#include "mxmusicmanager.h"
|
||||||
|
#include "mxomni.h"
|
||||||
|
|
||||||
|
DECOMP_SIZE_ASSERT(MxMusicPresenter, 0x54);
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100c22c0
|
// OFFSET: LEGO1 0x100c22c0
|
||||||
MxMusicPresenter::MxMusicPresenter()
|
MxMusicPresenter::MxMusicPresenter()
|
||||||
{
|
{
|
||||||
@ -22,3 +28,21 @@ void MxMusicPresenter::Destroy(MxBool)
|
|||||||
{
|
{
|
||||||
// TODO
|
// 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);
|
||||||
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "mxaudiopresenter.h"
|
#include "mxaudiopresenter.h"
|
||||||
|
|
||||||
// VTABLE 0x100dc9b8
|
// VTABLE 0x100dc9b8
|
||||||
|
// SIZE 0x54
|
||||||
class MxMusicPresenter : public MxAudioPresenter
|
class MxMusicPresenter : public MxAudioPresenter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -23,6 +24,9 @@ public:
|
|||||||
MxMusicPresenter();
|
MxMusicPresenter();
|
||||||
virtual ~MxMusicPresenter() override;
|
virtual ~MxMusicPresenter() override;
|
||||||
|
|
||||||
|
virtual MxResult AddToMusicManager(); // vtable+0x34
|
||||||
|
virtual void vtable38(); // vtable+0x38
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
void Destroy(MxBool);
|
void Destroy(MxBool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user