# HG changeset patch # User Michael Pavone # Date 1435035644 25200 # Node ID 296ddfcf0d43c1b81882cad06b715e0f458a934f # Parent cf09b189a0cabfd607a7b22d5b2dcf32cc210dee Minor cleanup in init_run_cpu diff -r cf09b189a0ca -r 296ddfcf0d43 blastem.c --- a/blastem.c Mon Jun 22 22:00:02 2015 -0700 +++ b/blastem.c Mon Jun 22 22:00:44 2015 -0700 @@ -1039,9 +1039,7 @@ //save RAM/map context->mem_pointers[2] = initial_mapped; context->mem_pointers[3] = (uint16_t *)gen->save_ram; - uint32_t address; - address = cart[2] << 16 | cart[3]; - translate_m68k_stream(address, context); + if (statefile) { uint32_t pc = load_gst(gen, statefile); if (!pc) { @@ -1056,6 +1054,7 @@ start_68k_context(context, pc); } else { if (debugger) { + uint32_t address = cart[2] << 16 | cart[3]; insert_breakpoint(context, address, debugger); } m68k_reset(context);