mirror of
https://github.com/libretro/RetroArch
synced 2025-02-14 06:40:48 +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;
|
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);
|
is_dir ? RGUI_FILE_DIRECTORY : RGUI_FILE_PLAIN, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user