Refactors
This commit is contained in:
parent
15f3f79732
commit
2c2f60cab4
10
retroarch.c
10
retroarch.c
|
@ -2917,14 +2917,15 @@ static void init_sram(void)
|
||||||
g_extern.use_sram = g_extern.use_sram && !g_extern.sram_save_disable;
|
g_extern.use_sram = g_extern.use_sram && !g_extern.sram_save_disable;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!g_extern.use_sram)
|
|
||||||
RARCH_LOG("SRAM will not be saved.\n");
|
|
||||||
|
|
||||||
#if defined(HAVE_THREADS)
|
|
||||||
if (g_extern.use_sram)
|
if (g_extern.use_sram)
|
||||||
|
{
|
||||||
|
#if defined(HAVE_THREADS)
|
||||||
init_autosave();
|
init_autosave();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
RARCH_LOG("SRAM will not be saved.\n");
|
||||||
|
}
|
||||||
|
|
||||||
int rarch_main_init(int argc, char *argv[])
|
int rarch_main_init(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -3154,7 +3155,6 @@ void rarch_main_command(unsigned action)
|
||||||
case RARCH_CMD_AUTOSAVE:
|
case RARCH_CMD_AUTOSAVE:
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
deinit_autosave();
|
deinit_autosave();
|
||||||
if (g_settings.autosave_interval)
|
|
||||||
init_autosave();
|
init_autosave();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue