mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
Refactor deinit_rewind - rewind should never be deinited if
netplay is enabled (?)
This commit is contained in:
parent
6422aa52d1
commit
e7980b89ea
11
retroarch.c
11
retroarch.c
@ -1531,6 +1531,11 @@ static void init_rewind(void)
|
||||
|
||||
static void deinit_rewind(void)
|
||||
{
|
||||
#ifdef HAVE_NETPLAY
|
||||
if (g_extern.netplay)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (g_extern.state_manager)
|
||||
state_manager_free(g_extern.state_manager);
|
||||
g_extern.state_manager = NULL;
|
||||
@ -3299,11 +3304,7 @@ void rarch_main_deinit(void)
|
||||
if (g_extern.use_sram)
|
||||
save_files();
|
||||
|
||||
#ifdef HAVE_NETPLAY
|
||||
if (!g_extern.netplay)
|
||||
#endif
|
||||
deinit_rewind();
|
||||
|
||||
deinit_rewind();
|
||||
deinit_cheats();
|
||||
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
|
Loading…
x
Reference in New Issue
Block a user