From ef7293f0bc336beb30f3a5f2eafad4a447f60ac5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 21 Jan 2004 14:58:40 +0000 Subject: New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory. New feature: A "Create directory" menu option (untested in the simulator). Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657 --- apps/sound_menu.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'apps/sound_menu.c') diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 11a5581ecb..01bbe09bd1 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -255,6 +255,17 @@ static bool recprerecord(void) names, 31, NULL ); } +static bool recdirectory(void) +{ + char *names[] = { + rec_base_directory, str(LANG_RECORD_CURRENT_DIR) + }; + + return set_option(str(LANG_RECORD_DIRECTORY), + &global_settings.rec_directory, INT, + names, 2, NULL ); +} + #endif /* HAVE_MAS3587F */ static void set_chanconf(int val) @@ -308,7 +319,7 @@ bool recording_menu(bool no_source) { int m; int i = 0; - struct menu_items menu[7]; + struct menu_items menu[8]; bool result; menu[i].desc = str(LANG_RECORDING_QUALITY); @@ -327,6 +338,8 @@ bool recording_menu(bool no_source) menu[i++].function = rectimesplit; menu[i].desc = str(LANG_RECORD_PRERECORD_TIME); menu[i++].function = recprerecord; + menu[i].desc = str(LANG_RECORD_DIRECTORY); + menu[i++].function = recdirectory; m=menu_init( menu, i ); result = menu_run(m); -- cgit v1.2.3