sdl: move the networkIP clensing out of CloseGame() because CloseGame is called in LoadGame()

This commit is contained in:
punkrockguy318 2011-10-17 22:07:36 +00:00
parent 82ce19f4a7
commit 0aef8cea7d
2 changed files with 4 additions and 4 deletions

View File

@ -1505,6 +1505,9 @@ 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 ()

View File

@ -239,9 +239,6 @@ CloseGame()
if(filename.size()) {
FCEUI_EndWaveRecord();
}
// 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", "");
InputUserActiveFix();
return(1);