diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-25 11:33:32 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-25 11:33:32 +0000 |
commit | 51782eb43649859aefc7099315526cd1cd98bd53 (patch) | |
tree | 0fc248b2823b69bb6a1eab32d74ceab53c4009cb | |
parent | 4e2384eb0747548c56599cfe92db45bea1fabda3 (diff) | |
download | rockbox-51782eb43649859aefc7099315526cd1cd98bd53.tar.gz rockbox-51782eb43649859aefc7099315526cd1cd98bd53.zip |
Safer dir reread after USB mode, by Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1445 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/tree.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 2559a1c399..7feb3ba8e7 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -398,6 +398,10 @@ bool dirbrowse(char *root) | |||
398 | /* Force a re-read of the root directory */ | 398 | /* Force a re-read of the root directory */ |
399 | strcpy(currdir, "/"); | 399 | strcpy(currdir, "/"); |
400 | lastdir[0] = 0; | 400 | lastdir[0] = 0; |
401 | dirlevel = 0; | ||
402 | dircursor = 0; | ||
403 | start = 0; | ||
404 | play_mode = 0; | ||
401 | } | 405 | } |
402 | } | 406 | } |
403 | restore = true; | 407 | restore = true; |
@@ -493,6 +497,10 @@ bool dirbrowse(char *root) | |||
493 | /* Force a re-read of the root directory */ | 497 | /* Force a re-read of the root directory */ |
494 | strcpy(currdir, "/"); | 498 | strcpy(currdir, "/"); |
495 | lastdir[0] = 0; | 499 | lastdir[0] = 0; |
500 | dirlevel = 0; | ||
501 | dircursor = 0; | ||
502 | start = 0; | ||
503 | play_mode = 0; | ||
496 | } | 504 | } |
497 | restore = true; | 505 | restore = true; |
498 | } | 506 | } |
@@ -511,6 +519,10 @@ bool dirbrowse(char *root) | |||
511 | restore = true; | 519 | restore = true; |
512 | strcpy(currdir, "/"); | 520 | strcpy(currdir, "/"); |
513 | lastdir[0] = 0; | 521 | lastdir[0] = 0; |
522 | dirlevel = 0; | ||
523 | dircursor = 0; | ||
524 | start = 0; | ||
525 | play_mode = 0; | ||
514 | break; | 526 | break; |
515 | #endif | 527 | #endif |
516 | } | 528 | } |