sdl: clear SDL.NetworkIP config on CloseGame() to prevent reconnection on next loadGame() call

This commit is contained in:
punkrockguy318 2011-10-17 19:50:54 +00:00
parent 3ea1fd363f
commit 82ce19f4a7
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,9 @@ 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);