mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename 'g_pMatSystemSurfaceReference' to 'g_pVGuiSurface'
This commit is contained in:
parent
93bca826ef
commit
4f2ed4ae75
@ -21,7 +21,7 @@ int CEngineVGui::Paint(CEngineVGui* thisptr, PaintMode_t mode)
|
||||
|
||||
if (/*mode == PaintMode_t::PAINT_UIPANELS ||*/ mode == PaintMode_t::PAINT_INGAMEPANELS) // Render in-main menu and in-game.
|
||||
{
|
||||
CEngineVGui_RenderStart(g_pMatSystemSurfaceReference);
|
||||
CEngineVGui_RenderStart(g_pVGuiSurface);
|
||||
g_pOverlay->Update();
|
||||
CEngineVGui_RenderEnd();
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ class CMatSystemSurface
|
||||
};
|
||||
|
||||
inline CMatSystemSurface* g_pMatSystemSurface;
|
||||
inline CMatSystemSurface* g_pMatSystemSurfaceReference;
|
||||
inline CMatSystemSurface* g_pVGuiSurface;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class VMatSystemSurface : public IDetour
|
||||
@ -19,7 +19,7 @@ class VMatSystemSurface : public IDetour
|
||||
{
|
||||
spdlog::debug("| FUN: CMatSystemSurface::DrawColoredText : {:#18x} |\n", p_CMatSystemSurface_DrawColoredText.GetPtr());
|
||||
spdlog::debug("| VAR: g_pMatSystemSurface : {:#18x} |\n", reinterpret_cast<uintptr_t>(g_pMatSystemSurface));
|
||||
spdlog::debug("| VAR: g_pMatSystemSurfaceReference : {:#18x} |\n", reinterpret_cast<uintptr_t>(g_pMatSystemSurfaceReference));
|
||||
spdlog::debug("| VAR: g_pVGuiSurface : {:#18x} |\n", reinterpret_cast<uintptr_t>(g_pVGuiSurface));
|
||||
spdlog::debug("+----------------------------------------------------------------+\n");
|
||||
}
|
||||
virtual void GetFun(void) const
|
||||
@ -38,7 +38,7 @@ class VMatSystemSurface : public IDetour
|
||||
"\x48\x83\xEC\x28\x48\x83\x3D\x00\x00\x00\x00\x00\x48\x8D\x05\x00\x00\x00\x00"), "xxxxxxx?????xxx????")
|
||||
.FindPatternSelf("48 83 3D", CMemory::Direction::DOWN, 40).ResolveRelativeAddressSelf(0x3, 0x8).RCast<CMatSystemSurface*>();
|
||||
#endif
|
||||
g_pMatSystemSurfaceReference = g_GameDll.FindPatternSIMD(reinterpret_cast<rsig_t>(
|
||||
g_pVGuiSurface = g_GameDll.FindPatternSIMD(reinterpret_cast<rsig_t>(
|
||||
"\x48\x8B\x05\x00\x00\x00\x00\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x48\x8B\x05\x00\x00\x00\x00\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x8B\x81\x00\x00\x00\x00"), "xxx????xxxxxxxxxxxx????xxxxxxxxxxx????")
|
||||
.ResolveRelativeAddressSelf(0x3, 0x7).RCast<CMatSystemSurface*>();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user