mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-27 10:24:18 +00:00
Beta match MxAutoLock and MxCriticalSection (#1638)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -29,7 +29,7 @@ void LegoHideAnimPresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1006da60
|
||||
void LegoHideAnimPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
|
||||
if (m_boundaryMap) {
|
||||
delete[] m_boundaryMap;
|
||||
|
||||
@@ -38,7 +38,7 @@ void LegoLocomotionAnimPresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1006d0e0
|
||||
void LegoLocomotionAnimPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
|
||||
if (m_unk0xc4) {
|
||||
delete[] m_unk0xc4;
|
||||
|
||||
@@ -33,7 +33,7 @@ void LegoModelPresenter::configureLegoModelPresenter(MxS32 p_modelPresenterConfi
|
||||
// FUNCTION: LEGO1 0x1007f670
|
||||
void LegoModelPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
m_roi = NULL;
|
||||
m_addedToView = FALSE;
|
||||
m_criticalSection.Leave();
|
||||
|
||||
@@ -31,7 +31,7 @@ void LegoPalettePresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1007a0e0
|
||||
void LegoPalettePresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
if (m_palette) {
|
||||
delete m_palette;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ MxResult LegoPartPresenter::AddToManager()
|
||||
// FUNCTION: LEGO1 0x1007c9d0
|
||||
void LegoPartPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
VideoManager()->UnregisterPresenter(*this);
|
||||
|
||||
if (m_parts) {
|
||||
|
||||
Reference in New Issue
Block a user