Play it on the safe side - go back to some of the code

from before
This commit is contained in:
LibretroAdmin 2025-01-07 02:47:37 +01:00
parent a98ab483cb
commit e40f405b97

View File

@ -581,8 +581,8 @@ static bool content_file_list_set_info(
* searching related content. For archived content, * searching related content. For archived content,
* this is the basename of the archive file without * this is the basename of the archive file without
* extension */ * extension */
fill_pathname(name, path_basename(archive_path), "", fill_pathname_base(name, archive_path, sizeof(name));
sizeof(name)); path_remove_extension(name);
file_info->file_in_archive = true; file_info->file_in_archive = true;
} }
@ -595,8 +595,8 @@ static bool content_file_list_set_info(
/* For uncompressed content, 'canonical' name/id /* For uncompressed content, 'canonical' name/id
* is the basename of the content file, without * is the basename of the content file, without
* extension */ * extension */
fill_pathname(name, path_basename(path), "", fill_pathname_base(name, path, sizeof(name));
sizeof(name)); path_remove_extension(name);
} }
if (!string_is_empty(dir)) if (!string_is_empty(dir))