mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 12:17:10 -05:00
13 lines
420 B
C++
13 lines
420 B
C++
#include <Geode/ui/SceneManager.hpp>
|
|
|
|
using namespace geode::prelude;
|
|
|
|
#include <Geode/modify/AchievementNotifier.hpp>
|
|
|
|
struct SceneSwitch : Modify<SceneSwitch, AchievementNotifier> {
|
|
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("persist disabled")
|
|
void willSwitchToScene(CCScene* scene) {
|
|
AchievementNotifier::willSwitchToScene(scene);
|
|
SceneManager::get()->willSwitchToScene(scene);
|
|
}
|
|
};
|