void do_start_program (void) { if (quit_program == -1) return; if (!canbang && candirect < 0) candirect = 0; if (canbang && candirect < 0) candirect = 1; /* Do a reset on startup. Whether this is elegant is debatable. */ inputdevice_updateconfig (&currprefs); if (quit_program >= 0) quit_program = 2; #if (defined (_WIN32) || defined (_WIN64)) && !defined (NO_WIN32_EXCEPTION_HANDLER) extern int EvalException (LPEXCEPTION_POINTERS blah, int n_except); __try #endif { m68k_go (1); } #if (defined (_WIN32) || defined (_WIN64)) && !defined (NO_WIN32_EXCEPTION_HANDLER) #ifdef JIT __except (EvalException (GetExceptionInformation (), GetExceptionCode ())) #else __except (DummyException (GetExceptionInformation (), GetExceptionCode ())) #endif { // EvalException does the good stuff... } #endif }
void do_start_program (void) { if (quit_program == -UAE_QUIT) return; /* Do a reset on startup. Whether this is elegant is debatable. */ inputdevice_updateconfig (&changed_prefs, &currprefs); if (quit_program >= 0) quit_program = UAE_RESET; #ifdef WITH_LUA uae_lua_loadall (); #endif #ifdef USE_STRUCTURED_EXCEPTION_HANDLING __try #endif { m68k_go (1); } #ifdef USE_STRUCTURED_EXCEPTION_HANDLING #ifdef JIT __except (EvalException(GetExceptionInformation())) #else __except (DummyException (GetExceptionInformation (), GetExceptionCode ())) #endif { // EvalException does the good stuff... } #endif }
void do_start_program (void) { if (quit_program == -UAE_QUIT) return; /* Do a reset on startup. Whether this is elegant is debatable. */ inputdevice_updateconfig (&changed_prefs, &currprefs); if (quit_program >= 0) quit_program = UAE_RESET; #ifdef WITH_LUA uae_lua_loadall (); #endif #if (defined (_WIN32) || defined (_WIN64)) && !defined (NO_WIN32_EXCEPTION_HANDLER) extern int EvalException (LPEXCEPTION_POINTERS blah, int n_except); __try #endif { m68k_go (1); } #if (defined (_WIN32) || defined (_WIN64)) && !defined (NO_WIN32_EXCEPTION_HANDLER) #ifdef JIT __except (EvalException (GetExceptionInformation (), GetExceptionCode ())) #else __except (DummyException (GetExceptionInformation (), GetExceptionCode ())) #endif { // EvalException does the good stuff... } #endif }
/* Okay, this stuff looks strange, but it is here to encourage people who * port UAE to re-use as much of this code as possible. Functions that you * should be using are do_start_program() and do_leave_program(), as well * as real_main(). Some OSes don't call main() (which is braindamaged IMHO, * but unfortunately very common), so you need to call real_main() from * whatever entry point you have. You may want to write your own versions * of start_program() and leave_program() if you need to do anything special. * Add #ifdefs around these as appropriate. */ void do_start_program (void) { __android_log_print(ANDROID_LOG_INFO, "UAE", "do_start_program"); quit_program = 2; reset_frameskip(); m68k_go (1); }
void do_start_program (void) { if (quit_program == -1) return; /* Do a reset on startup. Whether this is elegant is debatable. */ inputdevice_updateconfig (&currprefs); // if (quit_program >= 0) quit_program = 2; m68k_go (1); }
/* * Run emulator */ static void do_run_machine (void) { #if defined (NATMEM_OFFSET) && defined( _WIN32 ) && !defined( NO_WIN32_EXCEPTION_HANDLER ) extern int EvalException ( LPEXCEPTION_POINTERS blah, int n_except ); __try #endif { m68k_go (1); } #if defined (NATMEM_OFFSET) && defined( _WIN32 ) && !defined( NO_WIN32_EXCEPTION_HANDLER ) __except( EvalException( GetExceptionInformation(), GetExceptionCode() ) ) { // EvalException does the good stuff... } #endif }
void do_start_program (void) { if (quit_program == -1) return; #ifdef JIT if (!canbang && candirect < 0) candirect = 0; if (canbang && candirect < 0) candirect = 1; #endif /* Do a reset on startup. Whether this is elegant is debatable. */ inputdevice_updateconfig (&currprefs); if (quit_program >= 0) quit_program = 2; m68k_go (1); }
int uade_main (int argc, char **argv) { quit_program = 0; default_prefs (&currprefs); uade_option (argc, argv); machdep_init (); if (! setup_sound ()) { __android_log_print(ANDROID_LOG_VERBOSE, "UADE", "Sound driver unavailable: Sound output disabled\n"); currprefs.produce_sound = 0; exit(1); } init_sound(); fix_options (); changed_prefs = currprefs; check_prefs_changed_cpu(); memory_init (); custom_init (); /* Must come after memory_init */ reset_frame_rate_hack (); init_m68k(); /* must come after reset_frame_rate_hack (); */ /* compiler_init (); */ if (currprefs.start_debugger) activate_debugger (); m68k_go(); close_sound (); dump_counts (); return 0; }
/* Okay, this stuff looks strange, but it is here to encourage people who * port UAE to re-use as much of this code as possible. Functions that you * should be using are do_start_program() and do_leave_program(), as well * as real_main(). Some OSes don't call main() (which is braindamaged IMHO, * but unfortunately very common), so you need to call real_main() from * whatever entry point you have. You may want to write your own versions * of start_program() and leave_program() if you need to do anything special. * Add #ifdefs around these as appropriate. */ void do_start_program (void) { quit_program = 2; reset_frameskip(); m68k_go (1); }
/* Okay, this stuff looks strange, but it is here to encourage people who * port UAE to re-use as much of this code as possible. Functions that you * should be using are do_start_program() and do_leave_program(), as well * as real_main(). Some OSes don't call main() (which is braindamaged IMHO, * but unfortunately very common), so you need to call real_main() from * whatever entry point you have. You may want to write your own versions * of start_program() and leave_program() if you need to do anything special. * Add #ifdefs around these as appropriate. */ void do_start_program (void) { quit_program = 2; m68k_go (1); }