From 4dcb86c4023fef4e0c0d8e66ee1fb345d2537a47 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 22 Jun 2015 22:00:44 -0700 Subject: Minor cleanup in init_run_cpu --- blastem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index 4c1af0d..c3d1bd4 100644 --- a/blastem.c +++ b/blastem.c @@ -1039,9 +1039,7 @@ void init_run_cpu(genesis_context * gen, FILE * address_log, char * statefile, u //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 @@ void init_run_cpu(genesis_context * gen, FILE * address_log, char * statefile, u start_68k_context(context, pc); } else { if (debugger) { + uint32_t address = cart[2] << 16 | cart[3]; insert_breakpoint(context, address, debugger); } m68k_reset(context); -- cgit v1.2.3