Some init stuff needed for PS3.
This commit is contained in:
parent
bda70a9168
commit
6ff762f088
12
netplay.c
12
netplay.c
|
@ -33,9 +33,14 @@
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#ifndef SSNES_CONSOLE
|
|
||||||
|
#ifdef __CELLOS_LV2__
|
||||||
|
#include <cell/sysmodule.h>
|
||||||
|
#include <netex/net.h>
|
||||||
|
#else
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "netplay.h"
|
#include "netplay.h"
|
||||||
|
@ -403,13 +408,16 @@ static bool init_network(void)
|
||||||
if (inited)
|
if (inited)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32)
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
|
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
|
||||||
{
|
{
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#elif defined(__CELLOS_LV2__)
|
||||||
|
cellSysmoduleLoadModule(CELL_SYSMODULE_NET);
|
||||||
|
sys_net_initialize_network();
|
||||||
#else
|
#else
|
||||||
signal(SIGPIPE, SIG_IGN); // Do not like SIGPIPE killing our app :(
|
signal(SIGPIPE, SIG_IGN); // Do not like SIGPIPE killing our app :(
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue