mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
implement/match InfoCenter::~InfoCenter() (#457)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "mxbackgroundaudiomanager.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
#include "mxstillpresenter.h"
|
||||
#include "mxticklemanager.h"
|
||||
#include "mxtransitionmanager.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Infocenter, 0x1d8)
|
||||
@@ -46,10 +47,29 @@ Infocenter::Infocenter()
|
||||
m_unk0x1d6 = 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1006ec90
|
||||
// FUNCTION: LEGO1 0x1006ec90
|
||||
Infocenter::~Infocenter()
|
||||
{
|
||||
// TODO
|
||||
BackgroundAudioManager()->Stop();
|
||||
|
||||
MxS16 i = 0;
|
||||
do {
|
||||
if (m_infocenterState->GetInfocenterBufferElement(i) != NULL) {
|
||||
m_infocenterState->GetInfocenterBufferElement(i)->Enable(FALSE);
|
||||
}
|
||||
i++;
|
||||
} while (i < m_infocenterState->GetInfocenterBufferSize());
|
||||
|
||||
ControlManager()->Unregister(this);
|
||||
|
||||
InputManager()->UnRegister(this);
|
||||
if (InputManager()->GetWorld() == this) {
|
||||
InputManager()->ClearWorld();
|
||||
}
|
||||
|
||||
NotificationManager()->Unregister(this);
|
||||
|
||||
TickleManager()->UnregisterClient(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1006ed90
|
||||
|
Reference in New Issue
Block a user