geode/loader/src/hooks/persist.cpp

12 lines
301 B
C++
Raw Normal View History

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