From 8291b18771c7c99cfb85a896cd6740b7640ab3ce Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 19 May 2021 16:05:42 +0200 Subject: [PATCH] Small cleanup to cheevos content loading part --- tasks/task_content.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index 95cadbd2a3..1c25c19863 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -742,15 +742,17 @@ static bool content_file_load( if (!special) { const char *content_path = content->elems[0].data; - enum rarch_content_type type = path_is_media_type(content_path); - - if (type == RARCH_CONTENT_NONE && !string_is_empty(content_path)) - rcheevos_load(info); - else - rcheevos_pause_hardcore(); + if (!string_is_empty(content_path)) + { + enum rarch_content_type type = path_is_media_type(content_path); + if (type == RARCH_CONTENT_NONE) + { + rcheevos_load(info); + return true; + } + } } - else - rcheevos_pause_hardcore(); + rcheevos_pause_hardcore(); #endif return true;