mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Fix virtual function declarations
This commit is contained in:
parent
40dbdbd10f
commit
34f9fc9ddc
@ -14,30 +14,32 @@ MxSoundPresenter::~MxSoundPresenter()
|
||||
// OFFSET: LEGO1 0x100b1a50
|
||||
void MxSoundPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if(MSoundManager()) {
|
||||
MSoundManager()->RemovePresenter(*this);
|
||||
}
|
||||
if (MSoundManager())
|
||||
MSoundManager()->RemovePresenter(*this);
|
||||
|
||||
this->m_criticalSection.Enter();
|
||||
MxMediaPresenter::Init();
|
||||
this->m_criticalSection.Leave();
|
||||
if(p_fromDestructor == FALSE) {
|
||||
MxMediaPresenter::Destroy(FALSE);
|
||||
}
|
||||
|
||||
if (!p_fromDestructor)
|
||||
MxMediaPresenter::Destroy(FALSE);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b1aa0
|
||||
MxResult MxSoundPresenter::AddToManager()
|
||||
{
|
||||
MxResult ret = FAILURE;
|
||||
if(MSoundManager()) {
|
||||
ret = SUCCESS;
|
||||
MSoundManager()->AddPresenter(*this);
|
||||
|
||||
if (MSoundManager()) {
|
||||
ret = SUCCESS;
|
||||
MSoundManager()->AddPresenter(*this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1000d490
|
||||
void MxSoundPresenter::vtable38()
|
||||
void MxSoundPresenter::Destroy()
|
||||
{
|
||||
Destroy(FALSE);
|
||||
}
|
||||
|
||||
@ -23,8 +23,9 @@ class MxSoundPresenter : public MxAudioPresenter
|
||||
return !strcmp(name, MxSoundPresenter::ClassName()) || MxAudioPresenter::IsA(name);
|
||||
};
|
||||
|
||||
virtual MxResult AddToManager(); // vtable+0x34
|
||||
virtual void vtable38(); // vtable+0x38
|
||||
virtual MxResult AddToManager() override; // vtable+0x34
|
||||
virtual void Destroy() override; // vtable+0x38
|
||||
|
||||
private:
|
||||
void Destroy(MxBool);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user