mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
fix crashes (#1106)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user