mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-26 12:48:27 +00:00
Refactors
This commit is contained in:
parent
15f3f79732
commit
2c2f60cab4
12
retroarch.c
12
retroarch.c
@ -2917,13 +2917,14 @@ static void init_sram(void)
|
||||
g_extern.use_sram = g_extern.use_sram && !g_extern.sram_save_disable;
|
||||
#endif
|
||||
|
||||
if (!g_extern.use_sram)
|
||||
RARCH_LOG("SRAM will not be saved.\n");
|
||||
|
||||
#if defined(HAVE_THREADS)
|
||||
if (g_extern.use_sram)
|
||||
{
|
||||
#if defined(HAVE_THREADS)
|
||||
init_autosave();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
RARCH_LOG("SRAM will not be saved.\n");
|
||||
}
|
||||
|
||||
int rarch_main_init(int argc, char *argv[])
|
||||
@ -3154,8 +3155,7 @@ void rarch_main_command(unsigned action)
|
||||
case RARCH_CMD_AUTOSAVE:
|
||||
#ifdef HAVE_THREADS
|
||||
deinit_autosave();
|
||||
if (g_settings.autosave_interval)
|
||||
init_autosave();
|
||||
init_autosave();
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user