diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-05-20 23:34:12 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-05-20 23:34:12 -0700 |
commit | c16bdc99580a5867127efb1fad51c79f7c0804a7 (patch) | |
tree | b2c20890e10ba70f590bf786df445e1fc504f9ce | |
parent | 73ffeecaebbc313eb5713d779622b6e91cc72675 (diff) |
Better handling of savestate and debug break events with "uncooperative" games/demos
-rw-r--r-- | blastem.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -251,6 +251,9 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) vdp_int_ack(v_context, context->int_ack); context->int_ack = 0; } + if (!address && (break_on_sync || save_state)) { + context->sync_cycle = context->current_cycle + 1; + } adjust_int_cycle(context, v_context); if (address) { if (break_on_sync) { @@ -265,6 +268,7 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) sync_z80(z_context, z_context->current_cycle + MCLKS_PER_Z80); } save_gst(gen, "savestate.gst", address); + puts("Saved state to savestate.gst"); } } return context; |