diff options
| author | Dentomologist <dentomologist@gmail.com> | 2025-06-17 12:21:39 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2025-06-17 12:21:39 -0700 |
| commit | e21ae90073eb102b4a42ebf6d959dc73d762526e (patch) | |
| tree | d11c30306687f62f27a5f1836f8c97c597833dcd /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | 413b7475ec662605b36ad413758a8ae2d89f66ae (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.cpp | 8 |
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)")); |
