mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-19 15:31:53 +00:00
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.
This commit is contained in:
parent
413b7475ec
commit
e21ae90073
1 changed files with 8 additions and 0 deletions
|
@ -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)"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue