mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-23 04:40:42 +02:00
Update soc_u.cpp
This commit is contained in:
parent
5d123144ff
commit
4ded138139
@ -780,10 +780,6 @@ static void Connect(Interface* self) {
|
|||||||
|
|
||||||
static void InitializeSockets(Interface* self) {
|
static void InitializeSockets(Interface* self) {
|
||||||
// TODO(Subv): Implement
|
// TODO(Subv): Implement
|
||||||
#ifdef _WIN32
|
|
||||||
WSADATA data;
|
|
||||||
WSAStartup(MAKEWORD(2, 2), &data);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
u32* cmd_buffer = Kernel::GetCommandBuffer();
|
u32* cmd_buffer = Kernel::GetCommandBuffer();
|
||||||
cmd_buffer[0] = IPC::MakeHeader(1, 1, 0);
|
cmd_buffer[0] = IPC::MakeHeader(1, 1, 0);
|
||||||
@ -900,10 +896,18 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||||||
|
|
||||||
SOC_U::SOC_U() {
|
SOC_U::SOC_U() {
|
||||||
Register(FunctionTable);
|
Register(FunctionTable);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
WSADATA data;
|
||||||
|
WSAStartup(MAKEWORD(2, 2), &data);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SOC_U::~SOC_U() {
|
SOC_U::~SOC_U() {
|
||||||
CleanupSockets();
|
CleanupSockets();
|
||||||
|
#ifdef _WIN32
|
||||||
|
WSACleanup();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace SOC
|
} // namespace SOC
|
||||||
|
Loading…
Reference in New Issue
Block a user