From 6bd6c6b3202b719ea281be6d0a0307c88557434f Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 1 Oct 2023 18:40:04 +0300 Subject: [PATCH] reenable persist --- loader/src/hooks/persist.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/loader/src/hooks/persist.cpp b/loader/src/hooks/persist.cpp index 7be7ca06..3f216069 100644 --- a/loader/src/hooks/persist.cpp +++ b/loader/src/hooks/persist.cpp @@ -4,9 +4,9 @@ using namespace geode::prelude; #include -// struct SceneSwitch : Modify { -// void willSwitchToScene(CCScene* scene) { -// AchievementNotifier::willSwitchToScene(scene); -// SceneManager::get()->willSwitchToScene(scene); -// } -// }; +struct SceneSwitch : Modify { + void willSwitchToScene(CCScene* scene) { + AchievementNotifier::willSwitchToScene(scene); + SceneManager::get()->willSwitchToScene(scene); + } +};