sdl: move the networkIP clensing out of CloseGame() because CloseGame is called in LoadGame()
This commit is contained in:
parent
82ce19f4a7
commit
0aef8cea7d
|
@ -1505,6 +1505,9 @@ void closeGame()
|
||||||
GdkColor bg = {0, 0, 0, 0};
|
GdkColor bg = {0, 0, 0, 0};
|
||||||
gtk_widget_modify_bg(evbox, GTK_STATE_NORMAL, &bg);
|
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 ()
|
void loadGame ()
|
||||||
|
|
|
@ -239,9 +239,6 @@ CloseGame()
|
||||||
if(filename.size()) {
|
if(filename.size()) {
|
||||||
FCEUI_EndWaveRecord();
|
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();
|
InputUserActiveFix();
|
||||||
return(1);
|
return(1);
|
||||||
|
|
Loading…
Reference in New Issue