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 ()