mirror of
https://github.com/dborth/fceugx.git
synced 2024-10-31 22:45:05 +01:00
fix crash for those with their routers turned off
This commit is contained in:
parent
7db249df28
commit
9dadc743d1
@ -221,12 +221,13 @@ static void * netcb (void *arg)
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
networkInit = true;
|
||||
|
||||
struct in_addr hostip;
|
||||
hostip.s_addr = net_gethostip();
|
||||
if (hostip.s_addr)
|
||||
{
|
||||
strcpy(wiiIP, inet_ntoa(hostip));
|
||||
networkInit = true;
|
||||
}
|
||||
}
|
||||
LWP_SuspendThread(networkthread);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user