summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c12
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 }