void OnClose(HWND hWnd) { groff(); #ifdef SOUND Sound_Exit(); #endif uninitjoystick(); uninitinput(); }
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; }