diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-05-09 16:01:21 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-05-09 16:01:21 +0000 |
| commit | 20d031f9c70109dae2ea320a4c7264e1e489d8eb (patch) | |
| tree | 4459bf0a6cbba8e557b60397acfff6f5be3bda10 /apps/settings_menu.c | |
| parent | af2b7adefe31839bebbc407083d980a112e7242c (diff) | |
| download | rockbox-20d031f9c70109dae2ea320a4c7264e1e489d8eb.zip rockbox-20d031f9c70109dae2ea320a4c7264e1e489d8eb.tar.gz rockbox-20d031f9c70109dae2ea320a4c7264e1e489d8eb.tar.bz2 rockbox-20d031f9c70109dae2ea320a4c7264e1e489d8eb.tar.xz | |
Configurable dir browser file buffer size. No more 400-file limit. No more whining.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3661 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 7f03da9..d4a56e7 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -567,6 +567,20 @@ static bool poweroff(void) } #endif +static bool max_files_in_dir(void) +{ + return set_int(str(LANG_MAX_FILES_IN_DIR), "", + &global_settings.max_files_in_dir, + NULL, 50, 50, 10000 ); +} + +static bool max_files_in_playlist(void) +{ + return set_int(str(LANG_MAX_FILES_IN_PLAYLIST), "", + &global_settings.max_files_in_playlist, + NULL, 1000, 1000, 10000 ); +} + static bool buffer_margin(void) { return set_int(str(LANG_MP3BUFFER_MARGIN), "s", @@ -574,7 +588,7 @@ static bool buffer_margin(void) mpeg_set_buffer_margin, 1, 0, 7 ); } -static bool ff_rewind_min_step(void) +static bool ff_rewind_min_step(void) { char* names[] = { "1s", "2s", "3s", "4s", "5s", "6s", "8s", "10s", @@ -783,6 +797,8 @@ static bool system_settings_menu(void) #ifdef HAVE_ATA_POWER_OFF { str(LANG_POWEROFF), poweroff }, #endif + { str(LANG_MAX_FILES_IN_DIR), max_files_in_dir }, + { str(LANG_MAX_FILES_IN_PLAYLIST), max_files_in_playlist }, #ifndef SIMULATOR { str(LANG_BATTERY_CAPACITY), battery_capacity }, #endif |