mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Fix and implement Destroy
This commit is contained in:
parent
1f65137eef
commit
4a59ea37a8
@ -1,4 +1,6 @@
|
||||
#include "mxeventpresenter.h"
|
||||
#include "mxeventmanager.h"
|
||||
#include "mxomni.h"
|
||||
|
||||
#include "decomp.h"
|
||||
|
||||
@ -19,11 +21,22 @@ MxEventPresenter::~MxEventPresenter()
|
||||
// OFFSET: LEGO1 0x100c2da0
|
||||
void MxEventPresenter::Init()
|
||||
{
|
||||
m_unk50 = 0;
|
||||
m_unk50 = NULL;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100c2de0 STUB
|
||||
// OFFSET: LEGO1 0x100c2de0
|
||||
void MxEventPresenter::Destroy()
|
||||
{
|
||||
// TODO
|
||||
MxEventManager *eventManager = EventManager();
|
||||
if (eventManager)
|
||||
EventManager()->RemovePresenter(*this);
|
||||
|
||||
m_criticalSection.Enter();
|
||||
|
||||
if (m_unk50)
|
||||
delete m_unk50;
|
||||
|
||||
Init();
|
||||
|
||||
m_criticalSection.Leave();
|
||||
}
|
||||
|
||||
@ -28,10 +28,9 @@ class MxEventPresenter : public MxMediaPresenter
|
||||
|
||||
private:
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
undefined4 m_unk50;
|
||||
virtual void Destroy() override;
|
||||
|
||||
undefined4 *m_unk50;
|
||||
};
|
||||
|
||||
#endif // MXEVENTPRESENTER_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user