Skip to content

Commit

Permalink
reenable persist
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Oct 1, 2023
1 parent d964048 commit 6bd6c6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions loader/src/hooks/persist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ using namespace geode::prelude;

#include <Geode/modify/AchievementNotifier.hpp>

// struct SceneSwitch : Modify<SceneSwitch, AchievementNotifier> {
// void willSwitchToScene(CCScene* scene) {
// AchievementNotifier::willSwitchToScene(scene);
// SceneManager::get()->willSwitchToScene(scene);
// }
// };
struct SceneSwitch : Modify<SceneSwitch, AchievementNotifier> {
void willSwitchToScene(CCScene* scene) {
AchievementNotifier::willSwitchToScene(scene);
SceneManager::get()->willSwitchToScene(scene);
}
};

0 comments on commit 6bd6c6b

Please sign in to comment.