rename m_instance

This commit is contained in:
Misha 2023-06-29 16:09:16 +03:00
parent 97dc0701ab
commit 23550eaf4e
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#include "mxomni.h" #include "mxomni.h"
// 0x101015b0 // 0x101015b0
MxOmni *MxOmni::m_instance = NULL; MxOmni *MxOmni::g_instance = NULL;
// OFFSET: LEGO1 0x100aef10 // OFFSET: LEGO1 0x100aef10
MxOmni::MxOmni() MxOmni::MxOmni()
@ -36,23 +36,23 @@ void MxOmni::Init()
// OFFSET: LEGO1 0x100b0690 // OFFSET: LEGO1 0x100b0690
void MxOmni::DestroyInstance() void MxOmni::DestroyInstance()
{ {
if (m_instance != NULL) if (g_instance != NULL)
{ {
delete m_instance; delete g_instance;
m_instance = NULL; g_instance = NULL;
} }
} }
// OFFSET: LEGO1 0x100b0680 // OFFSET: LEGO1 0x100b0680
MxOmni *MxOmni::GetInstance() MxOmni *MxOmni::GetInstance()
{ {
return m_instance; return g_instance;
} }
// OFFSET: LEGO1 0x100af0b0 // OFFSET: LEGO1 0x100af0b0
void MxOmni::SetInstance(MxOmni *instance) void MxOmni::SetInstance(MxOmni *instance)
{ {
m_instance = instance; g_instance = instance;
} }
// OFFSET: LEGO1 0x100af0c0 // OFFSET: LEGO1 0x100af0c0

View File

@ -47,7 +47,7 @@ class MxOmni : public MxCore
MxMusicManager* GetMusicManager() const { return this->m_musicManager; } MxMusicManager* GetMusicManager() const { return this->m_musicManager; }
MxEventManager* GetEventManager() const { return this->m_eventManager; } MxEventManager* GetEventManager() const { return this->m_eventManager; }
protected: protected:
static MxOmni* m_instance; static MxOmni* g_instance;
MxString m_mediaPath; // 0x8 MxString m_mediaPath; // 0x8
HWND *m_windowHandle; // 0x18; HWND *m_windowHandle; // 0x18;