geode/loader/src/hooks/persist.cpp
2022-11-09 21:07:20 +03:00

12 lines
351 B
C++

#include <Geode/ui/SceneManager.hpp>
USE_GEODE_NAMESPACE();
#include <Geode/modify/AchievementNotifier.hpp>
struct SceneSwitch : Modify<SceneSwitch, AchievementNotifier> {
void willSwitchToScene(CCScene* scene) {
AchievementNotifier::willSwitchToScene(scene);
SceneManager::get()->willSwitchToScene(scene);
}
};