Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Change startup file folder
« previous next »
  • Print
Pages: [1]

Author Topic: Change startup file folder  (Read 4680 times)

Offline ace214

  • Member
  • *
  • Posts: 33
Change startup file folder
« on: September 04, 2007, 03:23:57 PM »
Ok, so I would like to be able to change the startup file folder from the root to my MUSIC directory.

I found the start_in_screen variable in the settings list codepage and looked for like an hour trying to find where it specifies the folder.

Perhaps I should request this in the tracker, but I figured I could just do it myself once I knew where it was.

Hopefully, this is best the forum for this.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Change startup file folder
« Reply #1 on: September 04, 2007, 03:44:11 PM »
start_in_screen specifies which screen to start in (e.g. radio, database, file browser) - not a folder.
Logged

Read The Manual Please

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #2 on: September 04, 2007, 10:59:49 PM »
So can you change what folder the file browser starts in?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Change startup file folder
« Reply #3 on: September 05, 2007, 03:52:59 AM »
I guess you could do - use the set_current_file() function to do this (it takes either a filename or a directory name as an argument).
Logged

Read The Manual Please

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #4 on: September 05, 2007, 09:24:19 AM »
In which codepage?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Change startup file folder
« Reply #5 on: September 05, 2007, 09:32:01 AM »
Eh? What's it got to do with which codepage you have ?
Logged

Read The Manual Please

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Change startup file folder
« Reply #6 on: September 05, 2007, 10:17:14 AM »
Errr... I think he means page of code i.e., which source file
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #7 on: September 05, 2007, 10:57:37 AM »
Quote from: bascule on September 05, 2007, 10:17:14 AM
Errr... I think he means page of code i.e., which source file
Yes, sorry. That's what I mean.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Change startup file folder
« Reply #8 on: September 05, 2007, 11:05:05 AM »
But I thought you said you'd already found where this setting was ?
Logged

Read The Manual Please

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #9 on: September 05, 2007, 11:12:09 AM »
I found the start in screen setting, not the set_current_file() function.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Change startup file folder
« Reply #10 on: September 06, 2007, 04:00:52 AM »
oh - set_current_file() is in tree.h IIRC.
Logged

Read The Manual Please

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #11 on: September 06, 2007, 10:40:53 PM »
Ok, that's where the function is mentioned but that's not what I need. I'll request it in the tracker.
Logged

Offline dionoea

  • Member
  • *
  • Posts: 30
Re: Change startup file folder
« Reply #12 on: September 07, 2007, 04:18:13 AM »
This is what I have in my tree to change the file browser location on boot:

Code: [Select]
--- 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;
Logged

Offline ace214

  • Member
  • *
  • Posts: 33
Re: Change startup file folder
« Reply #13 on: September 07, 2007, 11:27:22 AM »
Thanks a lot. I will use that for the time being.

Requested a setting in the tracker. FS #7724
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Change startup file folder
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.165 seconds with 16 queries.