fix crashes (#1106)

This commit is contained in:
Mr-X-GTA
2026-08-27 11:03:47 +02:00
committed by GitHub
parent 5d3dc15c8d
commit ca52f3d208
4 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -333,7 +333,8 @@ namespace YimMenu
if (!m_FSLProvidesBEBypass && !m_BattlEyeRunning)
{
Pointers.BattlEyeStatusUpdatePatch->Apply();
// this is integrity checked now
//Pointers.BattlEyeStatusUpdatePatch->Apply();
#if RESTORE_DESTROYED_FUNCTIONS
uintptr_t base = ModuleMgr.Get("GTA5_Enhanced.exe"_J)->Base();
+2 -2
View File
@@ -199,12 +199,12 @@ namespace YimMenu
bool Tunable::IsReady()
{
if (m_Global)
return true;
return m_Global->CanAccess();
m_Global = Tunables::GetTunable(m_Hash);
if (m_Global)
return true;
return m_Global->CanAccess();
return false;
}
+1 -1
View File
@@ -10,6 +10,6 @@ namespace YimMenu
bool ScriptGlobal::CanAccess() const
{
return Pointers.ScriptGlobals && (m_Index >> 0x12 & 0x3F) < 0x40 && Pointers.ScriptGlobals[m_Index >> 0x12 & 0x3F];
return Pointers.ScriptGlobals && Pointers.ScriptGlobals[m_Index >> 0x12 & 0x3F];
}
}
+5 -1
View File
@@ -22,5 +22,9 @@ struct CAnticheatContext
bool m_IsDebugMode;
volatile __int32 m_CurrentScanIndex;
std::uint64_t qwordA98;
std::uint64_t m_Timer;
char byteAA8[24];
char byteAC0[24];
char gapAD8[8];
};
static_assert(sizeof(CAnticheatContext) == 0xAA0);
static_assert(sizeof(CAnticheatContext) == 0xAE0);