summaryrefslogtreecommitdiff
path: root/apps/menus/recording_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-07-10 07:41:37 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-07-10 07:41:37 +0000
commit415e9d78cce1c07f17b4c643eb1b0d2ef1622706 (patch)
tree46ccafcbfc4003b145704a39bbdb270b3a65cded /apps/menus/recording_menu.c
parent1c2de0a45e17fbd5af3cab98ad2b1bc70a801d84 (diff)
downloadrockbox-415e9d78cce1c07f17b4c643eb1b0d2ef1622706.tar.gz
rockbox-415e9d78cce1c07f17b4c643eb1b0d2ef1622706.zip
User configurable recording path (my patch in FS#7201). path defaults to / and can be changed in the folder context menu (cleared in the recording settings menu)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13838 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/recording_menu.c')
-rw-r--r--apps/menus/recording_menu.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c
index da2007a5e2..4126b9e22a 100644
--- a/apps/menus/recording_menu.c
+++ b/apps/menus/recording_menu.c
@@ -21,6 +21,7 @@
21#include <stdio.h> 21#include <stdio.h>
22#include <stdlib.h> 22#include <stdlib.h>
23#include <stdbool.h> 23#include <stdbool.h>
24#include "string.h"
24#include "system.h" 25#include "system.h"
25#include "kernel.h" 26#include "kernel.h"
26#include "lcd.h" 27#include "lcd.h"
@@ -313,19 +314,16 @@ MAKE_MENU(filesplitoptionsmenu, ID2P(LANG_RECORD_TIMESPLIT), NULL, Icon_NOICON,
313 314
314 315
315MENUITEM_SETTING(rec_prerecord_time, &global_settings.rec_prerecord_time, NULL); 316MENUITEM_SETTING(rec_prerecord_time, &global_settings.rec_prerecord_time, NULL);
316static int recdirectory_func(void) 317
318static int clear_rec_directory(void)
317{ 319{
318 static const struct opt_items names[] = { 320 strcpy(global_settings.rec_directory, REC_BASE_DIR);
319 { rec_base_directory, -1 }, 321 gui_syncsplash(HZ, str(LANG_RESET_DONE_CLEAR));
320 { STR(LANG_RECORD_CURRENT_DIR) } 322 return false;
321 };
322 return set_option(str(LANG_RECORD_DIRECTORY),
323 &global_settings.rec_directory, INT,
324 names, 2, NULL );
325} 323}
326MENUITEM_FUNCTION(recdirectory, 0, ID2P(LANG_RECORD_DIRECTORY), 324MENUITEM_FUNCTION(clear_rec_directory_item, 0, ID2P(LANG_CLEAR_REC_DIR),
327 recdirectory_func, NULL, NULL, Icon_Menu_setting); 325 clear_rec_directory, NULL, NULL, Icon_Folder);
328 326
329MENUITEM_SETTING(cliplight, &global_settings.cliplight, NULL); 327MENUITEM_SETTING(cliplight, &global_settings.cliplight, NULL);
330 328
331#ifdef HAVE_AGC 329#ifdef HAVE_AGC
@@ -835,7 +833,7 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS),
835#endif 833#endif
836 &filesplitoptionsmenu, 834 &filesplitoptionsmenu,
837 &rec_prerecord_time, 835 &rec_prerecord_time,
838 &recdirectory, 836 &clear_rec_directory_item,
839#ifdef HAVE_BACKLIGHT 837#ifdef HAVE_BACKLIGHT
840 &cliplight, 838 &cliplight,
841#endif 839#endif