mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
blarg
This commit is contained in:
@ -55,7 +55,7 @@ u8 PacketBuffer[2048];
|
|||||||
|
|
||||||
bool MP_Init()
|
bool MP_Init()
|
||||||
{
|
{
|
||||||
BOOL opt_true = TRUE;
|
int opt_true = 1;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
@ -72,7 +72,7 @@ bool MP_Init()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(BOOL));
|
res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(int));
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
{
|
{
|
||||||
closesocket(MPSocket);
|
closesocket(MPSocket);
|
||||||
|
Reference in New Issue
Block a user