diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index 9480b67ed..ec420f43f 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -299,6 +299,8 @@ void CloseQuickMenu() ClearImGuiFocus(); } +#ifdef WITH_CHEEVOS + bool OpenAchievementsWindow() { const bool achievements_enabled = Cheevos::HasActiveGame() && (Cheevos::GetAchievementCount() > 0); @@ -322,6 +324,8 @@ bool OpenLeaderboardsWindow() return true; } +#endif + void Shutdown() { if (s_game_list_load_thread.joinable()) diff --git a/src/frontend-common/fullscreen_ui.h b/src/frontend-common/fullscreen_ui.h index 66dd78d6d..fa2081c80 100644 --- a/src/frontend-common/fullscreen_ui.h +++ b/src/frontend-common/fullscreen_ui.h @@ -49,8 +49,12 @@ void SystemDestroyed(); void SystemPaused(bool paused); void OpenQuickMenu(); void CloseQuickMenu(); + +#ifdef WITH_CHEEVOS bool OpenAchievementsWindow(); bool OpenLeaderboardsWindow(); +#endif + void Shutdown(); void Render();