diff options
author | 2010-10-19 13:55:11 +0000 | |
---|---|---|
committer | 2010-10-19 13:55:11 +0000 | |
commit | 359a06727c8efbd02369fa2605a51c9e1c25027b (patch) | |
tree | 5cc9e3392c51cfe1c3ed22248c98d9726d8c7c0e /src/emu | |
parent | aa8bd5fbd375e7afae3f78173a3a2d047b062e59 (diff) |
03915: All sets using -autosave: "auto.sta" can mistakenly be erased
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/machine.c b/src/emu/machine.c index faa39f1ff01..4dd78aca057 100644 --- a/src/emu/machine.c +++ b/src/emu/machine.c @@ -465,7 +465,7 @@ void running_machine::schedule_exit() m_scheduler.eat_all_cycles(); // if we're autosaving on exit, schedule a save as well - if (options_get_bool(&m_options, OPTION_AUTOSAVE) && (m_game.flags & GAME_SUPPORTS_SAVE)) + if (options_get_bool(&m_options, OPTION_AUTOSAVE) && (m_game.flags & GAME_SUPPORTS_SAVE) && attotime_compare(timer_get_time(this), attotime_zero) > 0) schedule_save("auto"); } |