diff options
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 2 | ||||
-rw-r--r-- | apps/menus/recording_menu.c | 21 |
2 files changed, 20 insertions, 3 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index c118dac444..1632c438dd 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -54,7 +54,7 @@ struct browse_folder_info { | |||
54 | }; | 54 | }; |
55 | static struct browse_folder_info theme = {THEME_DIR, SHOW_CFG}; | 55 | static struct browse_folder_info theme = {THEME_DIR, SHOW_CFG}; |
56 | static struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; | 56 | static struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; |
57 | static int browse_folder(void *param) | 57 | int browse_folder(void *param) |
58 | { | 58 | { |
59 | const struct browse_folder_info *info = | 59 | const struct browse_folder_info *info = |
60 | (const struct browse_folder_info*)param; | 60 | (const struct browse_folder_info*)param; |
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index 62af2f94fe..50b49c9db9 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #endif | 62 | #endif |
63 | #include "action.h" | 63 | #include "action.h" |
64 | 64 | ||
65 | |||
65 | static bool no_source_in_menu = true; | 66 | static bool no_source_in_menu = true; |
66 | int recmenu_callback(int action,const struct menu_item_ex *this_item); | 67 | int recmenu_callback(int action,const struct menu_item_ex *this_item); |
67 | 68 | ||
@@ -803,9 +804,24 @@ MENUITEM_FUNCTION(rectrigger_item, 0, ID2P(LANG_RECORD_TRIGGER), | |||
803 | 804 | ||
804 | 805 | ||
805 | 806 | ||
807 | /* from main_menu.c */ | ||
808 | struct browse_folder_info { | ||
809 | const char* dir; | ||
810 | int show_options; | ||
811 | }; | ||
812 | static struct browse_folder_info rec_config_browse = {RECPRESETS_DIR, SHOW_CFG}; | ||
813 | int browse_folder(void *param); | ||
814 | MENUITEM_FUNCTION(browse_recconfigs, MENU_FUNC_USEPARAM, ID2P(LANG_CUSTOM_CFG), | ||
815 | browse_folder, (void*)&rec_config_browse, NULL, Icon_Config); | ||
816 | static int write_settings_file(void) | ||
817 | { | ||
818 | return settings_save_config(SETTINGS_SAVE_RECPRESETS); | ||
819 | } | ||
820 | MENUITEM_FUNCTION(save_recpresets_item, 0, ID2P(LANG_SAVE_SETTINGS), | ||
821 | write_settings_file, NULL, NULL, Icon_Config); | ||
806 | 822 | ||
807 | 823 | MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS), | |
808 | MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS), NULL, Icon_Recording, | 824 | NULL, Icon_Recording, |
809 | #if CONFIG_CODEC == MAS3587F | 825 | #if CONFIG_CODEC == MAS3587F |
810 | &rec_quality, | 826 | &rec_quality, |
811 | #endif | 827 | #endif |
@@ -827,6 +843,7 @@ MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS), NULL, Icon_Reco | |||
827 | #ifdef HAVE_AGC | 843 | #ifdef HAVE_AGC |
828 | &agc_preset, &agc_cliptime, | 844 | &agc_preset, &agc_cliptime, |
829 | #endif | 845 | #endif |
846 | &browse_recconfigs, &save_recpresets_item | ||
830 | ); | 847 | ); |
831 | 848 | ||
832 | bool recording_menu(bool no_source) | 849 | bool recording_menu(bool no_source) |