implement misc presenter functions (#695)

* implement misc presenter functions

* style/spacing

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2024-03-19 11:07:11 -04:00
committed by GitHub
parent fd1b371864
commit 277957f0d5
3 changed files with 41 additions and 7 deletions

View File

@@ -37,10 +37,22 @@ MxResult LegoPartPresenter::AddToManager()
return SUCCESS;
}
// STUB: LEGO1 0x1007c9d0
// FUNCTION: LEGO1 0x1007c9d0
void LegoPartPresenter::Destroy(MxBool p_fromDestructor)
{
// TODO
m_criticalSection.Enter();
VideoManager()->UnregisterPresenter(*this);
if (m_parts) {
delete m_parts;
m_parts = NULL;
}
m_parts = NULL;
m_criticalSection.Leave();
if (!p_fromDestructor) {
MxMediaPresenter::Destroy(FALSE);
}
}
// FUNCTION: LEGO1 0x1007ca30