mirror of https://github.com/PCSX2/pcsx2.git
Achievements: Don't prompt for system reset if enabling Hardcore Mode on a game without achievements/leaderboards
Also improves behaviour parity between Qt and Fullscreen UI, since the latter used to prompt for system reset even if the game had no RetroAchievements entry.
This commit is contained in:
parent
22590754fd
commit
af07ee9abb
|
@ -127,7 +127,7 @@ void AchievementSettingsWidget::onHardcoreModeStateChanged()
|
|||
|
||||
// don't bother prompting if the game doesn't have achievements
|
||||
auto lock = Achievements::GetLock();
|
||||
if (!Achievements::HasActiveGame())
|
||||
if (!Achievements::HasActiveGame() || !Achievements::HasAchievementsOrLeaderboards())
|
||||
return;
|
||||
|
||||
if (QMessageBox::question(
|
||||
|
|
|
@ -6298,6 +6298,10 @@ void FullscreenUI::DrawAchievementsSettingsPage(std::unique_lock<std::mutex>& se
|
|||
|
||||
// Check for challenge mode just being enabled.
|
||||
if (check_challenge_state && enabled && bsi->GetBoolValue("Achievements", "ChallengeMode", false) && VMManager::HasValidVM())
|
||||
{
|
||||
// don't bother prompting if the game doesn't have achievements
|
||||
auto lock = Achievements::GetLock();
|
||||
if (Achievements::HasActiveGame() && Achievements::HasAchievementsOrLeaderboards())
|
||||
{
|
||||
ImGuiFullscreen::OpenConfirmMessageDialog(FSUI_STR("Reset System"),
|
||||
FSUI_STR("Hardcore mode will not be enabled until the system is reset. Do you want to reset the system now?"), [](bool reset) {
|
||||
|
@ -6308,6 +6312,7 @@ void FullscreenUI::DrawAchievementsSettingsPage(std::unique_lock<std::mutex>& se
|
|||
DoReset();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!IsEditingGameSettings(bsi))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue