sdl: fix last commit correctly

This commit is contained in:
punkrockguy318 2011-10-17 22:11:51 +00:00
parent 0aef8cea7d
commit 2f992d1d0e
1 changed files with 3 additions and 3 deletions

View File

@ -1089,6 +1089,9 @@ void quit ()
// it raises a GTK-Critical when its called
//gtk_main_quit();
FCEUI_Kill();
// LoadGame() checks for an IP and if it finds one begins a network session
// clear the NetworkIP field so this doesn't happen unintentionally
g_config->setOption("SDL.NetworkIP", "");
SDL_Quit();
exit(0);
}
@ -1505,9 +1508,6 @@ void closeGame()
GdkColor bg = {0, 0, 0, 0};
gtk_widget_modify_bg(evbox, GTK_STATE_NORMAL, &bg);
CloseGame();
// LoadGame() checks for an IP and if it finds one begins a network session
// clear the NetworkIP field so this doesn't happen unintentionally
g_config->setOption("SDL.NetworkIP", "");
}
void loadGame ()