From cac129001a1d7d8ef44da9ea99156e8ba9da3644 Mon Sep 17 00:00:00 2001 From: Explodingbill Date: Thu, 8 Aug 2024 18:51:28 +1000 Subject: [PATCH] u --- src/Client/AndroidBall.cpp | 8 ++++++++ src/Client/AndroidBall.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/Client/AndroidBall.cpp b/src/Client/AndroidBall.cpp index 2e4c484..8d84c49 100644 --- a/src/Client/AndroidBall.cpp +++ b/src/Client/AndroidBall.cpp @@ -254,11 +254,19 @@ class $modify (CCScene) } }; +#ifdef GEODE_IS_IOS +class $modify (AchievementNotifier) +#else class $modify (AppDelegate) +#endif { void willSwitchToScene(CCScene* newScene) { + #ifdef GEODE_IS_IOS + AchievementNotifier::willSwitchToScene(newScene); + #else AppDelegate::willSwitchToScene(newScene); + #endif if (!newScene) return; diff --git a/src/Client/AndroidBall.h b/src/Client/AndroidBall.h index 209fe01..f9f78d1 100644 --- a/src/Client/AndroidBall.h +++ b/src/Client/AndroidBall.h @@ -2,6 +2,7 @@ #include #include +#include #include #include #include "Client.h"