From 2f992d1d0e649fd6ac359bb650f7f9514fb6f6f1 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Mon, 17 Oct 2011 22:11:51 +0000 Subject: [PATCH] sdl: fix last commit correctly --- src/drivers/sdl/gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/sdl/gui.cpp b/src/drivers/sdl/gui.cpp index 6e3098c7..c68ea12f 100644 --- a/src/drivers/sdl/gui.cpp +++ b/src/drivers/sdl/gui.cpp @@ -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 ()