mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Reimplemented savestate task informing Netplay
This commit is contained in:
parent
1ef2786aed
commit
35666e21ae
@ -38,6 +38,10 @@
|
|||||||
#include "../core.h"
|
#include "../core.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_NETWORKING
|
||||||
|
#include "network/netplay/netplay.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../core.h"
|
#include "../core.h"
|
||||||
#include "../file_path_special.h"
|
#include "../file_path_special.h"
|
||||||
#include "../configuration.h"
|
#include "../configuration.h"
|
||||||
@ -431,6 +435,12 @@ 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;
|
||||||
@ -878,6 +888,12 @@ 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