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();
}
#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())

View file

@ -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();