implement LegoModelPresenter::Destroy (#428)

* LegoModelPresenter::Destroy

* remove debug print

* Update legomodelpresenter.cpp
This commit is contained in:
Misha 2024-01-12 17:30:50 -05:00 committed by GitHub
parent 3c0bf7191c
commit eac096036a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -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

View file

@ -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