summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2025-06-17 12:21:39 -0700
committerDentomologist <dentomologist@gmail.com>2025-06-17 12:21:39 -0700
commite21ae90073eb102b4a42ebf6d959dc73d762526e (patch)
treed11c30306687f62f27a5f1836f8c97c597833dcd /Source/Core/DolphinQt/MainWindow.cpp
parent413b7475ec662605b36ad413758a8ae2d89f66ae (diff)
MainWindow: Show hardcore mode error for recording playback
Show an error message when attempting to play an input recording while RetroAchievements hardcore mode is active, instead of silently doing nothing.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index c26c6a3f6f..891d11c094 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1849,6 +1849,14 @@ void MainWindow::OnImportNANDBackup()
void MainWindow::OnPlayRecording()
{
+ if (AchievementManager::GetInstance().IsHardcoreModeActive())
+ {
+ ModalMessageBox::critical(
+ this, tr("Error"),
+ tr("Playback of input recordings is disabled in RetroAchievements hardcore mode."));
+ return;
+ }
+
QString dtm_file = DolphinFileDialog::getOpenFileName(
this, tr("Select the Recording File to Play"), QString(), tr("Dolphin TAS Movies (*.dtm)"));