Rockbox Development > Starting Development and Compiling

Change startup file folder

<< < (3/3)

GodEater:
oh - set_current_file() is in tree.h IIRC.

ace214:
Ok, that's where the function is mentioned but that's not what I need. I'll request it in the tracker.

dionoea:
This is what I have in my tree to change the file browser location on boot:


--- Code: ------ apps/root_menu.c (revision 14585)
+++ apps/root_menu.c (working copy)
@@ -85,7 +85,7 @@
     int filter = SHOW_SUPPORTED;
     char folder[MAX_PATH] = "/";
     /* stuff needed to remember position in file browser */
-    static char last_folder[MAX_PATH] = "/";
+    static char last_folder[MAX_PATH] = "/media/";
     /* and stuff for the database browser */
 #ifdef HAVE_TAGCACHE      
     static int last_db_dirlevel = 0, last_db_selection = 0;

--- End code ---

ace214:
Thanks a lot. I will use that for the time being.

Requested a setting in the tracker. FS #7724

Navigation

[0] Message Index

[*] Previous page

Go to full version