mirror of
https://github.com/isledecomp/isle.git
synced 2025-02-16 19:50:15 -05:00
implement LegoModelPresenter::Destroy (#428)
* LegoModelPresenter::Destroy * remove debug print * Update legomodelpresenter.cpp
This commit is contained in:
parent
3c0bf7191c
commit
eac096036a
2 changed files with 13 additions and 2 deletions
|
@ -28,6 +28,10 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Destroy(MxBool p_fromDestructor);
|
void Destroy(MxBool p_fromDestructor);
|
||||||
|
|
||||||
|
private:
|
||||||
|
undefined4 m_unk0x64; // 0x64
|
||||||
|
MxBool m_addedToView; // 0x68
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LEGOMODELPRESENTER_H
|
#endif // LEGOMODELPRESENTER_H
|
||||||
|
|
|
@ -15,16 +15,23 @@ void LegoModelPresenter::configureLegoModelPresenter(MxS32 p_modelPresenterConfi
|
||||||
g_modelPresenterConfig = p_modelPresenterConfig;
|
g_modelPresenterConfig = p_modelPresenterConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1007f670
|
// FUNCTION: LEGO1 0x1007f670
|
||||||
void LegoModelPresenter::Destroy(MxBool p_fromDestructor)
|
void LegoModelPresenter::Destroy(MxBool p_fromDestructor)
|
||||||
{
|
{
|
||||||
// TODO
|
m_criticalSection.Enter();
|
||||||
|
m_unk0x64 = 0;
|
||||||
|
m_addedToView = FALSE;
|
||||||
|
m_criticalSection.Leave();
|
||||||
|
if (!p_fromDestructor) {
|
||||||
|
MxVideoPresenter::Destroy(FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10080050
|
// STUB: LEGO1 0x10080050
|
||||||
void LegoModelPresenter::ReadyTickle()
|
void LegoModelPresenter::ReadyTickle()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
|
SetTickleState(TickleState_Starting);
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100801b0
|
// STUB: LEGO1 0x100801b0
|
||||||
|
|
Loading…
Reference in a new issue