mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-19 07:47:38 -04:00
api: get singletons using g_memory.Translate
This commit is contained in:
@@ -3,6 +3,6 @@ namespace SWA
|
||||
// TODO: Hedgehog::Base::TSynchronizedPtr<CGameDocument>
|
||||
inline CGameDocument* CGameDocument::GetInstance()
|
||||
{
|
||||
return *ms_pInstance;
|
||||
return *(xpointer<CGameDocument>*)g_memory.Translate(0x83367900);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user