mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 11:10:27 +00:00
Support empty INFO packet for undifferentiated servers.
This commit is contained in:
parent
92bbeab6f6
commit
8fb1f6a647
@ -771,7 +771,7 @@ bool netplay_handshake_pre_info(netplay_t *netplay,
|
||||
uint32_t *content_crc_ptr;
|
||||
const char *dmsg = NULL;
|
||||
|
||||
RECV(&info_buf, sizeof(info_buf)) {}
|
||||
RECV(&info_buf, sizeof(info_buf.cmd)) {}
|
||||
|
||||
if (recvd < 0 ||
|
||||
ntohl(info_buf.cmd[0]) != NETPLAY_CMD_INFO)
|
||||
@ -800,6 +800,12 @@ bool netplay_handshake_pre_info(netplay_t *netplay,
|
||||
return true;
|
||||
}
|
||||
|
||||
RECV(&info_buf.core_name, cmd_size)
|
||||
{
|
||||
RARCH_ERR("Failed to receive netplay info payload.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Check the core info */
|
||||
core_info = NULL;
|
||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &core_info);
|
||||
|
Loading…
Reference in New Issue
Block a user