mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 14:40:05 +00: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) {
|
||||
// TODO(Subv): Implement
|
||||
#ifdef _WIN32
|
||||
WSADATA data;
|
||||
WSAStartup(MAKEWORD(2, 2), &data);
|
||||
#endif
|
||||
|
||||
u32* cmd_buffer = Kernel::GetCommandBuffer();
|
||||
cmd_buffer[0] = IPC::MakeHeader(1, 1, 0);
|
||||
@ -900,10 +896,18 @@ const Interface::FunctionInfo FunctionTable[] = {
|
||||
|
||||
SOC_U::SOC_U() {
|
||||
Register(FunctionTable);
|
||||
|
||||
#ifdef _WIN32
|
||||
WSADATA data;
|
||||
WSAStartup(MAKEWORD(2, 2), &data);
|
||||
#endif
|
||||
}
|
||||
|
||||
SOC_U::~SOC_U() {
|
||||
CleanupSockets();
|
||||
#ifdef _WIN32
|
||||
WSACleanup();
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace SOC
|
||||
|
Loading…
Reference in New Issue
Block a user