api: use MmGetHostAddress instead of g_memory.Translate

This commit is contained in:
Hyper
2024-10-19 20:51:35 +01:00
parent 56223974ff
commit 8b476689eb
3 changed files with 3 additions and 3 deletions
@@ -3,6 +3,6 @@ namespace SWA
// TODO: Hedgehog::Base::TSynchronizedPtr<CGameDocument>
inline CGameDocument* CGameDocument::GetInstance()
{
return *(xpointer<CGameDocument>*)g_memory.Translate(0x83367900);
return *(xpointer<CGameDocument>*)MmGetHostAddress(0x83367900);
}
}