From b4c4b318e84d0f83e8aec8b86613216179e5cea3 Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Tue, 23 Jul 2019 02:53:54 +0900 Subject: [PATCH] Ease of use improvements to rewind support. --- bsnes/target-bsnes/input/hotkeys.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bsnes/target-bsnes/input/hotkeys.cpp b/bsnes/target-bsnes/input/hotkeys.cpp index 28fc6d2f..e564b583 100644 --- a/bsnes/target-bsnes/input/hotkeys.cpp +++ b/bsnes/target-bsnes/input/hotkeys.cpp @@ -14,8 +14,14 @@ auto InputManager::bindHotkeys() -> void { })); hotkeys.append(InputHotkey("Rewind").onPress([&] { - program.rewindMode(Program::Rewind::Mode::Rewinding); + if(!emulator->loaded()) return; + if(program.rewind.frequency == 0) { + program.showMessage("Please enable rewind support in Settings->Emulator first"); + } else { + program.rewindMode(Program::Rewind::Mode::Rewinding); + } }).onRelease([&] { + if(!emulator->loaded()) return; program.rewindMode(Program::Rewind::Mode::Playing); }));