int sys_net_finalize_network() { sys_net->Warning("sys_net_initialize_network_ex()"); Memory.Free(g_lastError.GetAddr()); g_lastError.SetAddr(0); #ifdef _WIN32 WSACleanup(); #endif return CELL_OK; }
int sys_net_initialize_network_ex(mem_ptr_t<sys_net_initialize_parameter> param) { sys_net->Warning("sys_net_initialize_network_ex(param_addr=0x%x)", param.GetAddr()); g_lastError.SetAddr(Memory.Alloc(4, 1)); #ifdef _WIN32 WSADATA wsaData; WORD wVersionRequested = MAKEWORD(1,1); WSAStartup(wVersionRequested, &wsaData); #endif return CELL_OK; }