summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2017-12-07 14:37:39 +0000
committer smf- <smf-@users.noreply.github.com>2017-12-07 14:37:39 +0000
commitfc710e0786b30208189a6234d45b98e9b75026e7 (patch)
treecff429efd01fbd6ba0df3a141ae2d8eb8f811d11 /src/emu/debug/debugcmd.cpp
parent3379072a5d44c61d421c00c9098babd62045afd8 (diff)
don't lie (nw)
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index dd0c918ae6e..1b48be30e1f 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -1646,6 +1646,12 @@ void debugger_commands::execute_stateload(int ref, const std::vector<std::string
void debugger_commands::execute_rewind(int ref, const std::vector<std::string> &params)
{
+ if (!m_machine.save().rewind()->enabled())
+ {
+ m_console.printf("Rewind not enabled\n");
+ return;
+ }
+
m_machine.rewind_step();
// clear all PC & memory tracks