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