summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
authorLillyJadeKatrin <lilly.kitty.1988@gmail.com>2023-07-20 17:55:25 -0400
committerLillyJadeKatrin <lilly.kitty.1988@gmail.com>2023-12-02 16:41:17 -0500
commit6f7e02e2012fa889fb5f8e7a20e58c8538cc1a05 (patch)
treebbb0fad182a5238026d0f38c9e57999fd8590758 /Source/Core/DolphinQt/MenuBar.cpp
parent3aebbbb3e74f24b6da7537052f8b78c6b600eefa (diff)
Disable TAS recording playback in hardcore mode
Play Input Recording would potentially unlock achievements without any player input and needs to be disabled. If a recording is already playing, hardcore mode cannot be enabled.
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index 0a0b52e1fc..9b400e7c2a 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -141,6 +141,11 @@ void MenuBar::OnEmulationStateChanged(Core::State state)
m_recording_export->setEnabled(false);
}
m_recording_play->setEnabled(m_game_selected && !running);
+#ifdef USE_RETRO_ACHIEVEMENTS
+ m_recording_play->setEnabled(m_game_selected && !running && !hardcore);
+#else // USE_RETRO_ACHIEVEMENTS
+ m_recording_play->setEnabled(m_game_selected && !running);
+#endif // USE_RETRO_ACHIEVEMENTS
m_recording_start->setEnabled((m_game_selected || running) && !Movie::IsPlayingInput());
// JIT