Allow auto save states also in cores that support no content

as long as some content is loaded
This commit is contained in:
rsn8887 2019-08-13 21:28:19 -05:00
parent 890008491c
commit 2cc84bb99e

View File

@ -3214,8 +3214,6 @@ static bool command_event_init_core(enum rarch_core_type type)
static bool command_event_save_auto_state(void)
{
bool ret = false;
bool contentless = false;
bool is_inited = false;
char *savestate_name_auto = NULL;
size_t
savestate_name_auto_size = PATH_MAX_LENGTH * sizeof(char);
@ -3227,9 +3225,7 @@ static bool command_event_save_auto_state(void)
if (current_core_type == CORE_TYPE_DUMMY)
return false;
content_get_status(&contentless, &is_inited);
if (contentless)
if (string_is_empty(path_basename(path_get(RARCH_PATH_BASENAME))))
return false;
#ifdef HAVE_CHEEVOS