summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 7f03da975c..d4a56e728b 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -567,6 +567,20 @@ static bool poweroff(void)
567} 567}
568#endif 568#endif
569 569
570static bool max_files_in_dir(void)
571{
572 return set_int(str(LANG_MAX_FILES_IN_DIR), "",
573 &global_settings.max_files_in_dir,
574 NULL, 50, 50, 10000 );
575}
576
577static bool max_files_in_playlist(void)
578{
579 return set_int(str(LANG_MAX_FILES_IN_PLAYLIST), "",
580 &global_settings.max_files_in_playlist,
581 NULL, 1000, 1000, 10000 );
582}
583
570static bool buffer_margin(void) 584static bool buffer_margin(void)
571{ 585{
572 return set_int(str(LANG_MP3BUFFER_MARGIN), "s", 586 return set_int(str(LANG_MP3BUFFER_MARGIN), "s",
@@ -574,7 +588,7 @@ static bool buffer_margin(void)
574 mpeg_set_buffer_margin, 1, 0, 7 ); 588 mpeg_set_buffer_margin, 1, 0, 7 );
575} 589}
576 590
577static bool ff_rewind_min_step(void) 591static bool ff_rewind_min_step(void)
578{ 592{
579 char* names[] = { "1s", "2s", "3s", "4s", 593 char* names[] = { "1s", "2s", "3s", "4s",
580 "5s", "6s", "8s", "10s", 594 "5s", "6s", "8s", "10s",
@@ -783,6 +797,8 @@ static bool system_settings_menu(void)
783#ifdef HAVE_ATA_POWER_OFF 797#ifdef HAVE_ATA_POWER_OFF
784 { str(LANG_POWEROFF), poweroff }, 798 { str(LANG_POWEROFF), poweroff },
785#endif 799#endif
800 { str(LANG_MAX_FILES_IN_DIR), max_files_in_dir },
801 { str(LANG_MAX_FILES_IN_PLAYLIST), max_files_in_playlist },
786#ifndef SIMULATOR 802#ifndef SIMULATOR
787 { str(LANG_BATTERY_CAPACITY), battery_capacity }, 803 { str(LANG_BATTERY_CAPACITY), battery_capacity },
788#endif 804#endif