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