gtk: remove gtk_main_quit() and manually flush gtk event queue on quit
this supresses the Gtk-Critical error on fceux quit sdl: removed unneccesary newline prepending "Starting FCEUX"
This commit is contained in:
parent
651b5a16c2
commit
4427c066ec
|
@ -1070,9 +1070,14 @@ void openSoundConfig()
|
||||||
|
|
||||||
void quit ()
|
void quit ()
|
||||||
{
|
{
|
||||||
|
// manually flush GTK event queue
|
||||||
|
while(gtk_events_pending())
|
||||||
|
gtk_main_iteration_do(FALSE);
|
||||||
|
// this is not neccesary to be explicitly called
|
||||||
|
// it raises a GTK-Critical when its called
|
||||||
|
//gtk_main_quit();
|
||||||
FCEUI_Kill();
|
FCEUI_Kill();
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
gtk_main_quit();
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -499,7 +499,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int error, frameskip;
|
int error, frameskip;
|
||||||
|
|
||||||
FCEUD_Message("\nStarting "FCEU_NAME_AND_VERSION"...\n");
|
FCEUD_Message("Starting "FCEU_NAME_AND_VERSION"...\n");
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
/* Taken from win32 sdl_main.c */
|
/* Taken from win32 sdl_main.c */
|
||||||
|
|
Loading…
Reference in New Issue