From 802454482c2843234a19a06f6acce360e0be3d60 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 13 Nov 2015 19:15:37 -0800 Subject: It is now possible to switch back and forth between the menu ROM and the game --- m68k_core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'm68k_core.c') diff --git a/m68k_core.c b/m68k_core.c index 02463c9..877327e 100644 --- a/m68k_core.c +++ b/m68k_core.c @@ -983,6 +983,16 @@ void start_68k_context(m68k_context * context, uint32_t address) { code_ptr addr = get_native_address_trans(context, address); m68k_options * options = context->options; + context->should_return = 0; + options->start_context(addr, context); +} + +void resume_68k(m68k_context *context) +{ + code_ptr addr = context->resume_pc; + context->resume_pc = NULL; + m68k_options * options = context->options; + context->should_return = 0; options->start_context(addr, context); } -- cgit v1.2.3