mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Get basic Naett requests to work (the store works in https mode)
This commit is contained in:
1 parent
010c58231b
commit
fbd980bee6
12 files changed
+202
-17
No files matched your search
@@ -30,8 +30,11 @@
|
||||
#include "Common/Log.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
|
||||
#include "ext/naett/naett.h"
|
||||
|
||||
namespace net {
|
||||
|
||||
int g_refCount = 0;
|
||||
|
||||
void Init()
|
||||
{
|
||||
@@ -40,6 +43,10 @@ void Init()
|
||||
WSADATA wsaData = {0};
|
||||
WSAStartup(MAKEWORD(2, 2), &wsaData);
|
||||
#endif
|
||||
if (g_refCount == 0) {
|
||||
naettInit(NULL);
|
||||
}
|
||||
g_refCount++;
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
|
||||
Reference in new issue
Block a user