geode/loader/src/hooks/persist.cpp
HJfod cdaa8ad6dc add all UI-related stuff from API, including index, nodes, actual ui,
resources, md4c; and fix up some minor formatting issues
2022-08-01 18:18:03 +03:00

11 lines
301 B
C++

#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);
}
};