sdl: move the networkIP clensing out of CloseGame() because CloseGame is called in LoadGame()
This commit is contained in:
parent
82ce19f4a7
commit
0aef8cea7d
|
@ -1504,7 +1504,10 @@ void closeGame()
|
|||
{
|
||||
GdkColor bg = {0, 0, 0, 0};
|
||||
gtk_widget_modify_bg(evbox, GTK_STATE_NORMAL, &bg);
|
||||
CloseGame();
|
||||
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 ()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue