mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
5af15fba7c
Don't use macros where not necessary! This deprecates the old macro by way of a weird alias namespace.
12 lines
360 B
C++
12 lines
360 B
C++
#include <Geode/ui/SceneManager.hpp>
|
|
|
|
using namespace geode::prelude;
|
|
|
|
#include <Geode/modify/AchievementNotifier.hpp>
|
|
|
|
struct SceneSwitch : Modify<SceneSwitch, AchievementNotifier> {
|
|
void willSwitchToScene(CCScene* scene) {
|
|
AchievementNotifier::willSwitchToScene(scene);
|
|
SceneManager::get()->willSwitchToScene(scene);
|
|
}
|
|
};
|