Implement/match LegoAnimMMPresenter::~LegoAnimMMPresenter

This commit is contained in:
Christian Semmler 2024-04-20 12:39:24 -04:00
parent 30747dbae6
commit f1f65b5000
2 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class LegoAnimMMPresenter : public MxCompositePresenter {
}; };
LegoAnimMMPresenter(); LegoAnimMMPresenter();
~LegoAnimMMPresenter();
MxLong Notify(MxParam& p_param) override; // vtable+0x04 MxLong Notify(MxParam& p_param) override; // vtable+0x04

View File

@ -34,6 +34,18 @@ LegoAnimMMPresenter::LegoAnimMMPresenter()
m_unk0x58 = e_unk0; m_unk0x58 = e_unk0;
} }
// FUNCTION: LEGO1 0x1004aa60
LegoAnimMMPresenter::~LegoAnimMMPresenter()
{
if (VideoManager() != NULL) {
VideoManager()->UnregisterPresenter(*this);
}
delete m_unk0x68;
NotificationManager()->Unregister(this);
}
// FUNCTION: LEGO1 0x1004aaf0 // FUNCTION: LEGO1 0x1004aaf0
MxResult LegoAnimMMPresenter::StartAction(MxStreamController* p_controller, MxDSAction* p_action) MxResult LegoAnimMMPresenter::StartAction(MxStreamController* p_controller, MxDSAction* p_action)
{ {