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

View file

@ -3,6 +3,6 @@ namespace SWA
// TODO: Hedgehog::Base::TSynchronizedPtr<CApplicationDocument>
inline CApplicationDocument* CApplicationDocument::GetInstance()
{
return *(xpointer<CApplicationDocument>*)g_memory.Translate(0x833678A0);
return *(xpointer<CApplicationDocument>*)MmGetHostAddress(0x833678A0);
}
}

View file

@ -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);
}
}

View file

@ -3,7 +3,7 @@ namespace SWA
// TODO: Hedgehog::Base::TSynchronizedPtr<CInputState>
inline CInputState* CInputState::GetInstance()
{
return *(xpointer<CInputState>*)g_memory.Translate(0x833671EC);
return *(xpointer<CInputState>*)MmGetHostAddress(0x833671EC);
}
inline const SPadState& CInputState::GetPadState() const