mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Use names from 1996 sources (#437)
This commit is contained in:
committed by
GitHub
parent
7e9d3bde65
commit
dd72bcc666
@@ -27,7 +27,7 @@ void MxMusicPresenter::Init()
|
||||
void MxMusicPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if (MusicManager()) {
|
||||
MusicManager()->RemovePresenter(*this);
|
||||
MusicManager()->UnregisterPresenter(*this);
|
||||
}
|
||||
|
||||
m_criticalSection.Enter();
|
||||
@@ -46,7 +46,7 @@ MxResult MxMusicPresenter::AddToManager()
|
||||
|
||||
if (MusicManager()) {
|
||||
result = SUCCESS;
|
||||
MusicManager()->AddPresenter(*this);
|
||||
MusicManager()->RegisterPresenter(*this);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -9,7 +9,7 @@ DECOMP_SIZE_ASSERT(MxSoundPresenter, 0x54)
|
||||
void MxSoundPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if (MSoundManager())
|
||||
MSoundManager()->RemovePresenter(*this);
|
||||
MSoundManager()->UnregisterPresenter(*this);
|
||||
|
||||
this->m_criticalSection.Enter();
|
||||
MxMediaPresenter::Init();
|
||||
@@ -26,7 +26,7 @@ MxResult MxSoundPresenter::AddToManager()
|
||||
|
||||
if (MSoundManager()) {
|
||||
ret = SUCCESS;
|
||||
MSoundManager()->AddPresenter(*this);
|
||||
MSoundManager()->RegisterPresenter(*this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -75,7 +75,7 @@ MxResult MxMediaManager::Tickle()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100b88c0
|
||||
void MxMediaManager::AddPresenter(MxPresenter& p_presenter)
|
||||
void MxMediaManager::RegisterPresenter(MxPresenter& p_presenter)
|
||||
{
|
||||
MxAutoLocker lock(&this->m_criticalSection);
|
||||
|
||||
@@ -83,7 +83,7 @@ void MxMediaManager::AddPresenter(MxPresenter& p_presenter)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100b8980
|
||||
void MxMediaManager::RemovePresenter(MxPresenter& p_presenter)
|
||||
void MxMediaManager::UnregisterPresenter(MxPresenter& p_presenter)
|
||||
{
|
||||
MxAutoLocker lock(&this->m_criticalSection);
|
||||
MxPresenterListCursor cursor(this->m_presenters);
|
||||
|
||||
@@ -229,7 +229,7 @@ const char* PresenterNameDispatch(const MxDSAction& p_action)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100b5410
|
||||
MxEntity* MxPresenter::CreateEntityBackend(const char* p_name)
|
||||
MxEntity* MxPresenter::CreateEntity(const char* p_name)
|
||||
{
|
||||
char buffer[512];
|
||||
char buffer2[512];
|
||||
|
||||
@@ -33,7 +33,7 @@ MxResult MxEventPresenter::AddToManager()
|
||||
|
||||
if (EventManager()) {
|
||||
ret = SUCCESS;
|
||||
EventManager()->AddPresenter(*this);
|
||||
EventManager()->RegisterPresenter(*this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -43,7 +43,7 @@ MxResult MxEventPresenter::AddToManager()
|
||||
void MxEventPresenter::Destroy()
|
||||
{
|
||||
if (EventManager())
|
||||
EventManager()->RemovePresenter(*this);
|
||||
EventManager()->UnregisterPresenter(*this);
|
||||
|
||||
m_criticalSection.Enter();
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ void MxVideoPresenter::Init()
|
||||
void MxVideoPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if (MVideoManager() != NULL)
|
||||
MVideoManager()->RemovePresenter(*this);
|
||||
MVideoManager()->UnregisterPresenter(*this);
|
||||
|
||||
if (m_unk0x58) {
|
||||
m_unk0x58->Release();
|
||||
@@ -504,7 +504,7 @@ MxResult MxVideoPresenter::AddToManager()
|
||||
|
||||
if (MVideoManager()) {
|
||||
result = SUCCESS;
|
||||
MVideoManager()->AddPresenter(*this);
|
||||
MVideoManager()->RegisterPresenter(*this);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user