mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Make core_unserialize universally inform Netplay
This commit is contained in:
parent
71873e8c97
commit
8418196557
@ -283,6 +283,11 @@ bool core_unserialize(retro_ctx_serialize_info_t *info)
|
|||||||
return false;
|
return false;
|
||||||
if (!core.retro_unserialize(info->data_const, info->size))
|
if (!core.retro_unserialize(info->data_const, info->size))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#if HAVE_NETWORKING
|
||||||
|
netplay_driver_ctl(RARCH_NETPLAY_CTL_LOAD_SAVESTATE, info);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -440,12 +440,6 @@ bool content_undo_load_state(void)
|
|||||||
|
|
||||||
ret = core_unserialize(&serial_info);
|
ret = core_unserialize(&serial_info);
|
||||||
|
|
||||||
#if HAVE_NETWORKING
|
|
||||||
/* If Netplay is running, inform it */
|
|
||||||
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
|
||||||
netplay_driver_ctl(RARCH_NETPLAY_CTL_LOAD_SAVESTATE, &serial_info);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Clean up the temporary copy */
|
/* Clean up the temporary copy */
|
||||||
free(temp_data);
|
free(temp_data);
|
||||||
temp_data = NULL;
|
temp_data = NULL;
|
||||||
@ -902,12 +896,6 @@ static void content_load_state_cb(void *task_data,
|
|||||||
|
|
||||||
ret = core_unserialize(&serial_info);
|
ret = core_unserialize(&serial_info);
|
||||||
|
|
||||||
#if HAVE_NETWORKING
|
|
||||||
/* If Netplay is running, inform it */
|
|
||||||
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
|
||||||
netplay_driver_ctl(RARCH_NETPLAY_CTL_LOAD_SAVESTATE, &serial_info);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Flush back. */
|
/* Flush back. */
|
||||||
for (i = 0; i < num_blocks; i++)
|
for (i = 0; i < num_blocks; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user