mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Don't launch the friend finder thread if the adhoc network init fails.
Adds a flag for network success but doesn't check it anywhere yet..
This commit is contained in:
1 parent
58238bc7ed
commit
101fe5c481
3 files changed
+18
-25
No files matched your search
+2
-2
@@ -55,7 +55,7 @@ void __NetInit() {
|
||||
//net::Init();
|
||||
#ifdef _MSC_VER
|
||||
WSADATA data;
|
||||
int iResult = WSAStartup(MAKEWORD(2, 2), &data); // Might be better to call WSAStartup/WSACleanup from sceNetInit/sceNetTerm isn't? since it's the first/last network function being used, even better to put it in __NetInit/__NetShutdown as it's only called once
|
||||
int iResult = WSAStartup(MAKEWORD(2, 2), &data);
|
||||
if (iResult != NOERROR){
|
||||
ERROR_LOG(SCENET, "WSA Failed");
|
||||
}
|
||||
@@ -67,7 +67,7 @@ void __NetShutdown() {
|
||||
__ResetInitNetLib();
|
||||
//net::Shutdown();
|
||||
#ifdef _MSC_VER
|
||||
WSACleanup(); // Might be better to call WSAStartup/WSACleanup from sceNetInit/sceNetTerm isn't? since it's the first/last network function being used, even better to put it in __NetInit/__NetShutdown as it's only called once
|
||||
WSACleanup();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user