mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
api: use MmGetHostAddress instead of g_memory.Translate
This commit is contained in:
parent
56223974ff
commit
8b476689eb
3 changed files with 3 additions and 3 deletions
|
|
@ -3,6 +3,6 @@ namespace SWA
|
||||||
// TODO: Hedgehog::Base::TSynchronizedPtr<CApplicationDocument>
|
// TODO: Hedgehog::Base::TSynchronizedPtr<CApplicationDocument>
|
||||||
inline CApplicationDocument* CApplicationDocument::GetInstance()
|
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>
|
// TODO: Hedgehog::Base::TSynchronizedPtr<CGameDocument>
|
||||||
inline CGameDocument* CGameDocument::GetInstance()
|
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>
|
// TODO: Hedgehog::Base::TSynchronizedPtr<CInputState>
|
||||||
inline CInputState* CInputState::GetInstance()
|
inline CInputState* CInputState::GetInstance()
|
||||||
{
|
{
|
||||||
return *(xpointer<CInputState>*)g_memory.Translate(0x833671EC);
|
return *(xpointer<CInputState>*)MmGetHostAddress(0x833671EC);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const SPadState& CInputState::GetPadState() const
|
inline const SPadState& CInputState::GetPadState() const
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue