From ddfa4cb0e566f1abc91eb963de22aebc58551743 Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Mon, 9 Sep 2002 17:32:15 +0000 Subject: [PATCH] Go to current song (instead of root) when exiting wps after resume and browse current enabled. Also, if current file is at end of directory listing, show more files on the screen when exiting wps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2247 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/apps/tree.c b/apps/tree.c index b46835eb0c..47853f03c9 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -303,16 +303,33 @@ static int showdir(char *path, int start) if (start == -1) { + int diff_files; + /* use lastfile to determine start (default=0) */ - start = dirstart = 0; + start = 0; + for (i=0; i