Merge pull request #11737 from SimpleTease/netplay_1

Netplay: connection fixes
This commit is contained in:
Autechre 2020-12-23 03:26:40 +01:00 committed by GitHub
commit 4297fea46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -872,7 +872,7 @@ static bool netplay_handshake_pre_info(netplay_t *netplay,
return true;
}
RECV(&info_buf.core_name, cmd_size)
RECV(&info_buf.content_crc, cmd_size)
{
RARCH_ERR("Failed to receive netplay info payload.\n");
return false;

View File

@ -280,11 +280,13 @@ typedef struct netplay_input_state
/* How many words of input data do we have? */
uint32_t size;
/* Is this a buffer with real data? */
bool used;
/* The input data itself (note: should expand beyond 1 by overallocating). */
uint32_t data[1];
/* Is this a buffer with real data? */
bool used;
/* Warning: No members allowed past this point, due to dynamic resizing. */
} *netplay_input_state_t;
struct delta_frame