From f79a1df7186401676dc2410bdf7da5ee35208b53 Mon Sep 17 00:00:00 2001 From: GillianMC <70141395+SandeMC@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:54:13 +0000 Subject: [PATCH] this also breaks :/ --- source/frameratevigilante.ixx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/source/frameratevigilante.ixx b/source/frameratevigilante.ixx index 4d5c23d3..d17dd1e2 100644 --- a/source/frameratevigilante.ixx +++ b/source/frameratevigilante.ixx @@ -86,25 +86,6 @@ public: } }; injector::MakeInline(pattern.get_first(0), pattern.get_first(8)); } - - // Cop blips - static int CustomFrameCounter = 0; - pattern = hook::pattern("A1 ? ? ? ? 6B C0 15"); - if (!pattern.empty()) - injector::WriteMemory(pattern.get_first(1), &CustomFrameCounter, true); - - pattern = hook::pattern("FF 05 ? ? ? ? F3 0F 2C C0"); - if (!pattern.empty()) - { - static auto CounterHook = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs) - { - static float accumulator = 0.0f; - accumulator += (*CTimer::fTimeStep / (1.0f / 30.0f)); - int increment = static_cast(accumulator); - CustomFrameCounter += increment; - accumulator -= increment; - }); - } }; } } FramerateVigilante;