From aa26608457335319bf077abad0e8a8265019eea3 Mon Sep 17 00:00:00 2001 From: Oleksandr Nemesh Date: Tue, 26 Mar 2024 19:18:21 +0200 Subject: [PATCH] small vanilla hook fixes --- src/standalone/hooks/CCScheduler.cpp | 5 +---- src/standalone/hooks/GJBaseGameLayer.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/standalone/hooks/CCScheduler.cpp b/src/standalone/hooks/CCScheduler.cpp index cd5553b..76d0ed5 100644 --- a/src/standalone/hooks/CCScheduler.cpp +++ b/src/standalone/hooks/CCScheduler.cpp @@ -1,14 +1,11 @@ #include "hooks.hpp" #include "../../shared/hacks/speedhack/speedhack.hpp" -#include "../../shared/hacks/display/display.hpp" #include namespace openhack::hooks::CCScheduler { void update(cocos2d::CCScheduler* self, float dt) { hacks::SpeedHack::update(&dt); - hacks::Display::schedulerUpdate(dt, [&](float dt) { - hook::CCScheduler::update(self, dt); - }); + hook::CCScheduler::update(self, dt); } void installHooks() { diff --git a/src/standalone/hooks/GJBaseGameLayer.cpp b/src/standalone/hooks/GJBaseGameLayer.cpp index 759b029..8a3828a 100644 --- a/src/standalone/hooks/GJBaseGameLayer.cpp +++ b/src/standalone/hooks/GJBaseGameLayer.cpp @@ -6,6 +6,7 @@ #include "../../shared/hacks/frame-stepper/frame-stepper.hpp" #include "../../shared/hacks/zephyrus/replays.hpp" #include "../../shared/hacks/hitboxes/hitboxes.hpp" +#include "../../shared/hacks/display/display.hpp" namespace openhack::hooks::GJBaseGameLayer { void processCommands(gd::GJBaseGameLayer *self) { @@ -13,12 +14,14 @@ namespace openhack::hooks::GJBaseGameLayer { hacks::NoclipLimit::processCommands(); gd::hook::GJBaseGameLayer::processCommands(self); hacks::Hitboxes::processCommands(); + hacks::Zephyrus::GJBaseGameLayerProcessCommands(); } void update(gd::GJBaseGameLayer *self, float dt) { hacks::FrameStepper::gameUpdate(&dt); - gd::hook::GJBaseGameLayer::update(self, dt); - hacks::Zephyrus::GJBaseGameLayerProcessCommands(); + hacks::Display::schedulerUpdate(dt, [&](float dt) { + gd::hook::GJBaseGameLayer::update(self, dt); + }); } void installHooks() {