mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
Merge pull request #3683 from GregorR/netplay-df-0-workaround
Fix delay_frames=0 mode to work with the recent late-loading workaround
This commit is contained in:
commit
0f4fe8b4d4
@ -598,7 +598,7 @@ static bool netplay_poll(netplay_t *netplay)
|
||||
|
||||
/* WORKAROUND: The only reason poll_input is ignored in the first frame is
|
||||
* that some cores can't report state size until after the first frame. */
|
||||
if (netplay->self_frame_count > 0)
|
||||
if (netplay->self_frame_count > 0 || netplay->stall)
|
||||
{
|
||||
/* Read Netplay input, block if we're configured to stall for input every
|
||||
* frame */
|
||||
|
@ -261,7 +261,10 @@ static void netplay_net_post_frame(netplay_t *netplay)
|
||||
serial_info.data_const = netplay->buffer[netplay->replay_ptr].state;
|
||||
serial_info.size = netplay->state_size;
|
||||
|
||||
core_unserialize(&serial_info);
|
||||
if (!core_unserialize(&serial_info))
|
||||
{
|
||||
RARCH_ERR("Netplay savestate loading failed: Prepare for desync!\n");
|
||||
}
|
||||
|
||||
while (netplay->replay_frame_count < netplay->self_frame_count)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user