mirror of https://github.com/PCSX2/pcsx2.git
UI: Fix build with achievements disabled
This commit is contained in:
parent
72b38ce712
commit
8d0307cedd
|
@ -17,6 +17,7 @@
|
|||
#include "common/Assertions.h"
|
||||
#include "common/FileSystem.h"
|
||||
#include "common/Path.h"
|
||||
#include "pcsx2/Achievements.h"
|
||||
#include "Frontend/CommonHost.h"
|
||||
#include "Frontend/FullscreenUI.h"
|
||||
#include "Frontend/InputManager.h"
|
||||
|
@ -286,4 +287,4 @@ DEFINE_HOTKEY_SAVESTATE_X(10)
|
|||
DEFINE_HOTKEY_LOADSTATE_X(10)
|
||||
#undef DEFINE_HOTKEY_SAVESTATE_X
|
||||
#undef DEFINE_HOTKEY_LOADSTATE_X
|
||||
END_HOTKEY_LIST()
|
||||
END_HOTKEY_LIST()
|
||||
|
|
|
@ -4093,18 +4093,6 @@ void FullscreenUI::DrawFoldersSettingsPage()
|
|||
EndMenuButtons();
|
||||
}
|
||||
|
||||
#ifndef ENABLE_ACHIEVEMENTS
|
||||
|
||||
void FullscreenUI::DrawAchievementsSettingsPage(std::unique_lock<std::mutex>& settings_lock)
|
||||
{
|
||||
BeginMenuButtons();
|
||||
ActiveButton(ICON_FA_BAN " This build was not compiled with Achievements support.", false, false,
|
||||
ImGuiFullscreen::LAYOUT_MENU_BUTTON_HEIGHT_NO_SUMMARY);
|
||||
EndMenuButtons();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void FullscreenUI::DrawAdvancedSettingsPage()
|
||||
{
|
||||
static constexpr const char* ee_rounding_mode_settings[] = {"Nearest", "Negative", "Positive", "Chop/Zero (Default)"};
|
||||
|
@ -6959,17 +6947,15 @@ void FullscreenUI::DrawAchievementsLoginWindow()
|
|||
|
||||
#else
|
||||
|
||||
bool FullscreenUI::OpenAchievementsWindow()
|
||||
void FullscreenUI::OpenAchievementsWindow()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FullscreenUI::OpenLeaderboardsWindow()
|
||||
void FullscreenUI::OpenLeaderboardsWindow()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void FullscreenUI::DrawAchievementsSettingsPage()
|
||||
void FullscreenUI::DrawAchievementsSettingsPage(std::unique_lock<std::mutex>& settings_lock)
|
||||
{
|
||||
BeginMenuButtons();
|
||||
ActiveButton(ICON_FA_BAN " This build was not compiled with RetroAchievements support.", false, false,
|
||||
|
|
Loading…
Reference in New Issue