From 19dcd07f87e437a901a40d0f6e827524e670739e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 21 Jun 2021 12:10:49 +1000 Subject: [PATCH] FullscreenUI: Fix compiling without cheevos --- src/frontend-common/fullscreen_ui.cpp | 4 ++++ src/frontend-common/fullscreen_ui.h | 4 ++++ 2 files changed, 8 insertions(+) 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();