static UI_CALLBACK(activate_monitor) { int v; resources_get_int("MonitorServer", &v); if (v == 0) { #ifdef HAVE_FULLSCREEN fullscreen_suspend(0); #endif vsync_suspend_speed_eval(); ui_dispatch_events(); /* popdown the menu */ ui_autorepeat_on(); #ifdef HAVE_MOUSE ui_restore_mouse(); #endif if (!ui_emulation_is_paused()) { monitor_startup_trap(); } else { monitor_startup(e_default_space); #ifdef HAVE_FULLSCREEN fullscreen_resume(); #endif } } }
static UI_CALLBACK(load_snapshot) { if (!ui_emulation_is_paused()) interrupt_maincpu_trigger_trap(load_snapshot_trap, (void *)0); else load_snapshot_trap(0, 0); }
/** \brief Display UI to save a snapshot file * * \param[in] parent parent widget * \param[in] user_data unused */ void uisnapshot_save_file(GtkWidget *parent, gpointer user_data) { if (!ui_emulation_is_paused()) { interrupt_maincpu_trigger_trap(save_snapshot_trap, NULL); } else { save_snapshot_trap(0, NULL); } }
static UI_CALLBACK(load_quicksnap) { char *fname = util_concat(archdep_home_path(), "/", VICEUSERDIR, "/", machine_name, ".vsf", NULL); if (!ui_emulation_is_paused()) interrupt_maincpu_trigger_trap(load_snapshot_trap, (void *)fname); else load_snapshot_trap(0, (void *)fname); }
static UI_CALLBACK(activate_monitor) { #ifdef HAVE_FULLSCREEN fullscreen_suspend(0); #endif vsync_suspend_speed_eval(); ui_dispatch_events(); /* popdown the menu */ ui_autorepeat_on(); #ifdef HAVE_MOUSE ui_restore_mouse(); #endif if (!ui_emulation_is_paused()) monitor_startup_trap(); else monitor_startup(); }