Simplify path_init_savefile

This commit is contained in:
twinaphex 2016-09-29 08:25:37 +02:00
parent be81edad84
commit 1385f2c4fa

View File

@ -400,14 +400,14 @@ void path_init_savefile(void)
else else
rarch_ctl(RARCH_CTL_UNSET_SRAM_ENABLE, NULL); rarch_ctl(RARCH_CTL_UNSET_SRAM_ENABLE, NULL);
if (rarch_ctl(RARCH_CTL_IS_SRAM_USED, NULL)) if (!rarch_ctl(RARCH_CTL_IS_SRAM_USED, NULL))
{ {
command_event(CMD_EVENT_AUTOSAVE_INIT, NULL); RARCH_LOG("%s\n",
msg_hash_to_str(MSG_SRAM_WILL_NOT_BE_SAVED));
return; return;
} }
RARCH_LOG("%s\n", command_event(CMD_EVENT_AUTOSAVE_INIT, NULL);
msg_hash_to_str(MSG_SRAM_WILL_NOT_BE_SAVED));
} }
static void path_init_savefile_internal(void) static void path_init_savefile_internal(void)