diff --git a/uisimulator/tree.c b/uisimulator/tree.c index 7f8a76518f..ff040e2ddf 100644 --- a/uisimulator/tree.c +++ b/uisimulator/tree.c @@ -22,15 +22,20 @@ #include #include #include "kernel.h" +#include "tree.h" #ifdef WIN32 #include #endif // WIN32 -#define TREE_MAX_LEN 15 +#define TREE_MAX_LEN 15 #define TREE_MAX_ON_SCREEN 7 int dircursor=0; +void browse_root(void) { + dirbrowse("/"); +} + bool dirbrowse(char *root) { DIR *dir = opendir(root); diff --git a/uisimulator/tree.h b/uisimulator/tree.h index eaff602c51..0dfd4ec99b 100644 --- a/uisimulator/tree.h +++ b/uisimulator/tree.h @@ -17,4 +17,5 @@ * ****************************************************************************/ +void browse_root(void); bool dirbrowse(char *root);