mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
MxMIDIPresenter::EndMIDIAction + update param name
m_MIDIInitialized is definitely public, since it is accessed from the global MusicManager.
This commit is contained in:
parent
b9162b0126
commit
6e6307c7b0
@ -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();
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user