Fix directory browsing

Only the first page of files can be browsed in the directory though.
The top screen is where the playlist will be displayed, but is currently
used for music playback info.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2016-12-31 19:16:37 +00:00
parent 91b55285f2
commit 9920fd1ac3
2 changed files with 115 additions and 30 deletions

View File

@@ -8,14 +8,14 @@
*/
/**
* List directory.
* List current directory.
*
* \param dir Path of directory.
* \param from First entry in directory to list.
* \param max Maximum number of entries to list. Must be > 0.
* \param select File to show as selected. Must be > 0.
* \return Number of entries listed or negative on error.
*/
int listDir(const char *dir, int from, int max);
int listDir(int from, int max, int select);
/**
* Obtains file type.