mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Made deferred path correct in case of a compressed file
This commit is contained in:
parent
193f416f8f
commit
547e2129ce
15
retroarch.c
15
retroarch.c
@ -3828,6 +3828,14 @@ int rarch_defer_core(core_info_list_t *core_info, const char *dir,
|
||||
|
||||
fill_pathname_join(deferred_path, dir, path, sizeof_deferred_path);
|
||||
|
||||
if (path_is_compressed_file(dir))
|
||||
{
|
||||
/* In case of a compressed archive, we have to join with a hash */
|
||||
/* We are going to write at the position of dir: */
|
||||
rarch_assert(strlen(dir) < strlen(deferred_path));
|
||||
deferred_path[strlen(dir)] = '#';
|
||||
}
|
||||
|
||||
if (core_info)
|
||||
core_info_list_get_supported_cores(core_info, deferred_path, &info,
|
||||
&supported);
|
||||
@ -3837,13 +3845,6 @@ int rarch_defer_core(core_info_list_t *core_info, const char *dir,
|
||||
{
|
||||
strlcpy(g_extern.fullpath, deferred_path,
|
||||
sizeof(g_extern.fullpath));
|
||||
if (path_is_compressed_file(dir))
|
||||
{
|
||||
/* In case of a compressed archive, we have to join with a hash */
|
||||
/* We are going to write at the position of dir: */
|
||||
rarch_assert(strlen(dir) < strlen(g_extern.fullpath));
|
||||
g_extern.fullpath[strlen(dir)] = '#';
|
||||
}
|
||||
|
||||
if (path_file_exists(info->path))
|
||||
strlcpy(g_settings.libretro, info->path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user