mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 12:40:03 +00:00
Fix file browser on PC.
This commit is contained in:
parent
0b8d8c41f7
commit
1aca911fe3
@ -1356,7 +1356,12 @@ static bool directory_parse(const char *directory, void *userdata, void *ctx)
|
||||
))
|
||||
continue;
|
||||
|
||||
rgui_list_push(ctx, path_basename(list->elems[i].data),
|
||||
// Need to preserve slash first time.
|
||||
const char *path = list->elems[i].data;
|
||||
if (*directory)
|
||||
path = path_basename(path);
|
||||
|
||||
rgui_list_push(ctx, path,
|
||||
is_dir ? RGUI_FILE_DIRECTORY : RGUI_FILE_PLAIN, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user