mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
misc gp2x tweaks
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@839 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
61d87c7edd
commit
a96477bb5e
1 changed files with 4 additions and 1 deletions
|
@ -797,10 +797,13 @@ rescan:
|
|||
|
||||
n = scandir(curr_path, &namelist, scandir_filter, (void *)scandir_cmp);
|
||||
if (n < 0) {
|
||||
char *t;
|
||||
lprintf("menu_loop_romsel failed, dir: %s\n", curr_path);
|
||||
|
||||
// try root
|
||||
plat_get_root_dir(curr_path, len);
|
||||
t = getcwd(curr_path, len);
|
||||
if (t == NULL)
|
||||
plat_get_root_dir(curr_path, len);
|
||||
n = scandir(curr_path, &namelist, scandir_filter, (void *)scandir_cmp);
|
||||
if (n < 0) {
|
||||
// oops, we failed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue