implement/match global ControlManager() function (#219)

* implement/match global ControlManager() function

* remove unnecessary forward declaration
This commit is contained in:
Ramen2X 2023-10-18 16:12:28 -04:00 committed by GitHub
parent 7c26a4d2dc
commit 52e6c9ac22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,8 @@ public:
void SetTimer();
void KillTimer();
inline LegoControlManager *GetControlManager() { return m_controlManager; }
//private:
MxCriticalSection m_criticalSection;
MxList<undefined4> *m_unk0x5c; // list or hash table

View file

@ -5,6 +5,7 @@
#include "legogamestate.h"
#include "legoutil.h"
#include "legoobjectfactory.h"
#include "legoinputmanager.h"
// 0x100f4588
MxAtomId *g_nocdSourceName = NULL;
@ -205,6 +206,12 @@ LegoInputManager *InputManager()
return LegoOmni::GetInstance()->GetInputManager();
}
// OFFSET: LEGO1 0x10015750
LegoControlManager *ControlManager()
{
return LegoOmni::GetInstance()->GetInputManager()->GetControlManager();
}
// OFFSET: LEGO1 0x10015760
LegoGameState *GameState()
{