mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-25 02:31:50 +01:00
net changes
This commit is contained in:
parent
322e1575b7
commit
409482fab5
@ -266,16 +266,17 @@ void StopNetworkThread()
|
|||||||
|
|
||||||
bool InitializeNetwork(bool silent)
|
bool InitializeNetwork(bool silent)
|
||||||
{
|
{
|
||||||
if(networkInit)
|
|
||||||
{
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
StopNetworkThread();
|
StopNetworkThread();
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(silent)
|
if(networkInit && net_gethostip() > 0)
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
|
networkInit = false;
|
||||||
|
#else
|
||||||
|
if(networkInit)
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
|
||||||
int retry = 1;
|
int retry = 1;
|
||||||
|
|
||||||
@ -301,7 +302,7 @@ bool InitializeNetwork(bool silent)
|
|||||||
|
|
||||||
CancelAction();
|
CancelAction();
|
||||||
|
|
||||||
if(networkInit)
|
if(networkInit || silent)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
retry = ErrorPromptRetry("Unable to initialize network!");
|
retry = ErrorPromptRetry("Unable to initialize network!");
|
||||||
|
Loading…
Reference in New Issue
Block a user