Clean up Destroy pattern everywhere, fix missing overrides (#202)

* Rename MxMusicPresenter function vtable38

* Rename MxMusicPresenter function vtable38

* MxMediaPresenter, MxMusicManager and MxMusicPresenter
* Refactoring Destroy functions

* MxMediaManager & MxMusicPresenter

* Fix some vtable declarations, more renames

* Fix MxEventManager

* More rename fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
DmitriLeon2000
2023-10-14 01:43:45 +09:00
committed by GitHub
parent 91c3ed3e70
commit 34e09c2bb3
24 changed files with 104 additions and 115 deletions

View File

@@ -24,7 +24,7 @@ void MxSoundManager::Init()
}
// OFFSET: LEGO1 0x100ae840
void MxSoundManager::Destroy(MxBool p_param)
void MxSoundManager::Destroy(MxBool p_fromDestructor)
{
if (this->m_thread) {
this->m_thread->Terminate();
@@ -43,7 +43,7 @@ void MxSoundManager::Destroy(MxBool p_param)
Init();
this->m_criticalSection.Leave();
if (!p_param) {
if (!p_fromDestructor) {
MxAudioManager::Destroy();
}
}