fix(anticheat): small fixes

This commit is contained in:
maybegreat48
2025-06-21 11:53:18 -04:00
parent b50c32cf7b
commit 3868c7993a
3 changed files with 4 additions and 12 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ namespace YimMenu::Features
static const std::vector<std::pair<int, const char*>> g_StyleOptions = {
{0, "Classic"},
{1, "Modern"},
{2, "ModernV"},
{2, "Modern (Vertical)"},
};
// Expose as global reference so other code can use it
+2 -10
View File
@@ -74,14 +74,6 @@ namespace YimMenu
}
}
for (rage::gameSkeletonData& i : Pointers.GameSkeleton->m_SysData)
{
if (i.m_Hash != 0xA0F39FB6 && i.m_Hash != "TamperActions"_J)
continue;
// this is integrity checked and runs before we patch it, so it isn't very useful anymore
//i.m_InitFunc = Pointers.Nullsub;
i.m_ShutdownFunc = Pointers.Nullsub;
}
if (patched)
{
@@ -156,12 +148,12 @@ namespace YimMenu
if (m_BattlEyeRunning)
LOGF(WARNING, "If you are not running an actual BattlEye bypass, exit the game immediately and ensure that BE is properly disabled");
if (!m_FSLProvidesBEBypass)
if (!m_FSLProvidesBEBypass && !m_BattlEyeRunning)
Pointers.BattlEyeStatusUpdatePatch->Apply();
while (true)
{
if (!m_FSLProvidesBEBypass)
if (!m_FSLProvidesBEBypass && !m_BattlEyeRunning)
{
*Pointers.BERestartStatus = 0;
*Pointers.NeedsBERestart = false;
+1 -1
View File
@@ -46,7 +46,7 @@ namespace YimMenu
m_SelectedItem = "";
auto size = ImGui::CalcTextSize(largest_string);
m_ItemWidth = size.x + 25.0f;
m_ItemWidth = size.x + 40.0f;
}
ImGui::SetNextItemWidth(m_ItemWidth.value());