Skip to content

Commit

Permalink
fix incorrect achievementnotifier func name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 14, 2025
1 parent 8707a1b commit 088fe2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/src/hooks/persist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct SceneSwitch2 : Modify<SceneSwitch2, CCDirector> {
#ifdef GEODE_IS_WINDOWS
AppDelegate::get()->willSwitchToScene(m_pNextScene);
#else
AchievementNotifier::get()->willSwitchToScene(m_pNextScene);
AchievementNotifier::sharedState()->willSwitchToScene(m_pNextScene);
#endif
}

Expand All @@ -49,7 +49,7 @@ struct SceneSwitch2 : Modify<SceneSwitch2, CCDirector> {
#ifdef GEODE_IS_WINDOWS
AppDelegate::get()->willSwitchToScene(m_pNextScene);
#else
AchievementNotifier::get()->willSwitchToScene(m_pNextScene);
AchievementNotifier::sharedState()->willSwitchToScene(m_pNextScene);
#endif
}
};
Expand Down

0 comments on commit 088fe2c

Please sign in to comment.