mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
Merge pull request #4708 from GregorR/netplay-empty-info
Support empty INFO packet for undifferentiated servers.
This commit is contained in:
commit
b30b9599a2
@ -771,7 +771,7 @@ bool netplay_handshake_pre_info(netplay_t *netplay,
|
|||||||
uint32_t *content_crc_ptr;
|
uint32_t *content_crc_ptr;
|
||||||
const char *dmsg = NULL;
|
const char *dmsg = NULL;
|
||||||
|
|
||||||
RECV(&info_buf, sizeof(info_buf)) {}
|
RECV(&info_buf, sizeof(info_buf.cmd)) {}
|
||||||
|
|
||||||
if (recvd < 0 ||
|
if (recvd < 0 ||
|
||||||
ntohl(info_buf.cmd[0]) != NETPLAY_CMD_INFO)
|
ntohl(info_buf.cmd[0]) != NETPLAY_CMD_INFO)
|
||||||
@ -800,6 +800,12 @@ bool netplay_handshake_pre_info(netplay_t *netplay,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RECV(&info_buf.core_name, cmd_size)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Failed to receive netplay info payload.\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check the core info */
|
/* Check the core info */
|
||||||
core_info = NULL;
|
core_info = NULL;
|
||||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &core_info);
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &core_info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user