summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-25 11:33:32 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-25 11:33:32 +0000
commit51782eb43649859aefc7099315526cd1cd98bd53 (patch)
tree0fc248b2823b69bb6a1eab32d74ceab53c4009cb /apps
parent4e2384eb0747548c56599cfe92db45bea1fabda3 (diff)
downloadrockbox-51782eb43649859aefc7099315526cd1cd98bd53.zip
rockbox-51782eb43649859aefc7099315526cd1cd98bd53.tar.gz
rockbox-51782eb43649859aefc7099315526cd1cd98bd53.tar.bz2
rockbox-51782eb43649859aefc7099315526cd1cd98bd53.tar.xz
Safer dir reread after USB mode, by Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1445 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 2559a1c..7feb3ba 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -398,6 +398,10 @@ bool dirbrowse(char *root)
/* Force a re-read of the root directory */
strcpy(currdir, "/");
lastdir[0] = 0;
+ dirlevel = 0;
+ dircursor = 0;
+ start = 0;
+ play_mode = 0;
}
}
restore = true;
@@ -493,6 +497,10 @@ bool dirbrowse(char *root)
/* Force a re-read of the root directory */
strcpy(currdir, "/");
lastdir[0] = 0;
+ dirlevel = 0;
+ dircursor = 0;
+ start = 0;
+ play_mode = 0;
}
restore = true;
}
@@ -511,6 +519,10 @@ bool dirbrowse(char *root)
restore = true;
strcpy(currdir, "/");
lastdir[0] = 0;
+ dirlevel = 0;
+ dircursor = 0;
+ start = 0;
+ play_mode = 0;
break;
#endif
}