MxMIDIPresenter::EndMIDIAction + update param name

m_MIDIInitialized is definitely public, since it is accessed from the global
MusicManager.
This commit is contained in:
Joshua Peisach 2023-10-13 20:13:33 -04:00
parent b9162b0126
commit 6e6307c7b0
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
3 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#include "mxmidipresenter.h"
#include "decomp.h"
#include "legoomni.h"
#include "mxmusicmanager.h"
DECOMP_SIZE_ASSERT(MxMIDIPresenter, 0x58);
@ -22,7 +24,15 @@ void MxMIDIPresenter::Init()
}
// OFFSET: LEGO1 0x100c2830 STUB
void MxMIDIPresenter::Destroy(MxBool p_param)
void MxMIDIPresenter::Destroy(MxBool p_fromDestructor)
{
// TODO
}
// OFFSET: LEGO1 0x100c2940
void MxMIDIPresenter::EndMIDIAction()
{
if(!MusicManager()->m_MIDIInitialized) {
this->EndAction();
}
}

View File

@ -23,6 +23,8 @@ class MxMIDIPresenter : public MxMusicPresenter
return !strcmp(name, MxMIDIPresenter::ClassName()) || MxMusicPresenter::IsA(name);
}
virtual void EndMIDIAction(); // vtable+0x2a
private:
void Init();
void Destroy(MxBool);

View File

@ -24,7 +24,9 @@ class MxMusicManager : public MxAudioManager
void SetMIDIVolume();
HMIDISTRM m_MIDIStreamH; // 0x30
public:
MxBool m_MIDIInitialized; // 0x34
private:
undefined4 m_unk38; // 0x38
undefined4 m_unk3c; // 0x3c
undefined4 m_unk40; // 0x40