From e40f405b97f8f401292c963912256d8d38aaf167 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Tue, 7 Jan 2025 02:47:37 +0100 Subject: [PATCH] Play it on the safe side - go back to some of the code from before --- tasks/task_content.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index dc42c731f1..603e0f3fd3 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -581,8 +581,8 @@ static bool content_file_list_set_info( * searching related content. For archived content, * this is the basename of the archive file without * extension */ - fill_pathname(name, path_basename(archive_path), "", - sizeof(name)); + fill_pathname_base(name, archive_path, sizeof(name)); + path_remove_extension(name); file_info->file_in_archive = true; } @@ -595,8 +595,8 @@ static bool content_file_list_set_info( /* For uncompressed content, 'canonical' name/id * is the basename of the content file, without * extension */ - fill_pathname(name, path_basename(path), "", - sizeof(name)); + fill_pathname_base(name, path, sizeof(name)); + path_remove_extension(name); } if (!string_is_empty(dir))