FullscreenUI: Fix compiling without cheevos

This commit is contained in:
Connor McLaughlin 2021-06-21 12:10:49 +10:00
parent bf3476d903
commit 19dcd07f87
2 changed files with 8 additions and 0 deletions

View file

@ -299,6 +299,8 @@ void CloseQuickMenu()
ClearImGuiFocus(); ClearImGuiFocus();
} }
#ifdef WITH_CHEEVOS
bool OpenAchievementsWindow() bool OpenAchievementsWindow()
{ {
const bool achievements_enabled = Cheevos::HasActiveGame() && (Cheevos::GetAchievementCount() > 0); const bool achievements_enabled = Cheevos::HasActiveGame() && (Cheevos::GetAchievementCount() > 0);
@ -322,6 +324,8 @@ bool OpenLeaderboardsWindow()
return true; return true;
} }
#endif
void Shutdown() void Shutdown()
{ {
if (s_game_list_load_thread.joinable()) if (s_game_list_load_thread.joinable())

View file

@ -49,8 +49,12 @@ void SystemDestroyed();
void SystemPaused(bool paused); void SystemPaused(bool paused);
void OpenQuickMenu(); void OpenQuickMenu();
void CloseQuickMenu(); void CloseQuickMenu();
#ifdef WITH_CHEEVOS
bool OpenAchievementsWindow(); bool OpenAchievementsWindow();
bool OpenLeaderboardsWindow(); bool OpenLeaderboardsWindow();
#endif
void Shutdown(); void Shutdown();
void Render(); void Render();