mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-30 15:50:05 -06:00
api: use MmGetHostAddress instead of g_memory.Translate
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user