int Atari_Exit(int run_monitor) { /* restore to text mode */ ShutdownVgaEnvironment(); key_delete(); /* enable keyboard in monitor */ if (run_monitor) { #ifdef SOUND Sound_Pause(); #endif if (monitor()) { #ifdef MONITOR_BREAK if (!break_step) /*do not enter videomode when stepping through the code*/ #endif SetupVgaEnvironment(); #ifdef SOUND Sound_Continue(); #endif return 1; /* return to emulation */ } } #ifdef SOUND Sound_Exit(); #endif Aflushlog(); return 0; }
void OnClose(HWND hWnd) { groff(); #ifdef SOUND Sound_Exit(); #endif uninitjoystick(); uninitinput(); }
int PLATFORM_Exit(int run_monitor) { Log_flushlog(); if (run_monitor && MONITOR_Run()) return TRUE; #ifdef SOUND Sound_Exit(); #endif return FALSE; }
int Atari_Exit(int run_monitor) { Aflushlog(); if (run_monitor && monitor()) return TRUE; #ifdef SOUND Sound_Exit(); #endif return FALSE; }
int Atari_Exit(int run_monitor) { backlight_xchg(); /* restore backlight settings */ SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, bat_timeout, NULL, SPIF_SENDCHANGE); /* monitor is not avaliable in this port */ if(run_monitor) return 1; #ifdef BUFFERED_LOG Aflushlog(); #endif uninitinput(); groff(); #ifdef SOUND Sound_Exit(); #endif return 0; }
int PLATFORM_Exit(int run_monitor) { SDL_INPUT_Exit(); /* If the SDL window was left not closed, it would be unusable and hanging for the time the monitor is active. Also, with SDL_VIDEODRIVER=directx all keyboard presses in console would be still fetched by the SDL window after leaving the monitor. To avoid the problems, close the video subsystem. */ SDL_VIDEO_Exit(); Log_flushlog(); if (run_monitor) { #ifdef SOUND Sound_Pause(); #endif if (MONITOR_Run()) { /* Reinitialise the SDL subsystem. */ #ifdef MONITOR_BREAK if (!MONITOR_break_step) /*Do not initialise videomode when stepping through code */ #endif { SDL_VIDEO_InitSDL(); SDL_INPUT_Restart(); /* This call reopens the SDL window. */ VIDEOMODE_Update(); } #ifdef SOUND Sound_Continue(); #endif return 1; } } #ifdef SOUND Sound_Exit(); #endif return 0; }