geode/loader/src/hooks/persist.cpp

13 lines
361 B
C++
Raw Normal View History

#include <Geode/ui/SceneManager.hpp>
USE_GEODE_NAMESPACE();
2022-10-30 14:56:36 -04:00
// clang-format off
#include <Geode/modify/AchievementNotifier.hpp>
class $modify(AchievementNotifier) {
void willSwitchToScene(CCScene* scene) {
AchievementNotifier::willSwitchToScene(scene);
SceneManager::get()->willSwitchToScene(scene);
}
};
2022-10-30 14:56:36 -04:00
// clang-format on