diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index d1098b7719..cba03733fd 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -1043,6 +1043,16 @@ MENUITEM_FUNCTION(list_viewers_item, 0, ID2P(LANG_ONPLAY_OPEN_WITH), | |||
1043 | MENUITEM_FUNCTION(set_backdrop_item, 0, ID2P(LANG_SET_AS_BACKDROP), | 1043 | MENUITEM_FUNCTION(set_backdrop_item, 0, ID2P(LANG_SET_AS_BACKDROP), |
1044 | set_backdrop, NULL, clipboard_callback, Icon_NOICON); | 1044 | set_backdrop, NULL, clipboard_callback, Icon_NOICON); |
1045 | #endif | 1045 | #endif |
1046 | #ifdef HAVE_RECORDING | ||
1047 | static bool set_recdir(void) | ||
1048 | { | ||
1049 | strncpy(global_settings.rec_directory, | ||
1050 | selected_file, MAX_FILENAME+1); | ||
1051 | return false; | ||
1052 | } | ||
1053 | MENUITEM_FUNCTION(set_recdir_item, 0, ID2P(LANG_SET_AS_REC_DIR), | ||
1054 | set_recdir, NULL, clipboard_callback, Icon_Recording); | ||
1055 | #endif | ||
1046 | 1056 | ||
1047 | 1057 | ||
1048 | 1058 | ||
@@ -1090,6 +1100,10 @@ static int clipboard_callback(int action,const struct menu_item_ex *this_item) | |||
1090 | if ((this_item == &delete_dir_item) | 1100 | if ((this_item == &delete_dir_item) |
1091 | ) | 1101 | ) |
1092 | return action; | 1102 | return action; |
1103 | #ifdef HAVE_RECORDING | ||
1104 | else if (this_item == &set_recdir_item) | ||
1105 | return action; | ||
1106 | #endif | ||
1093 | } | 1107 | } |
1094 | else if (selected_file | 1108 | else if (selected_file |
1095 | #ifdef HAVE_MULTIVOLUME | 1109 | #ifdef HAVE_MULTIVOLUME |
@@ -1135,7 +1149,10 @@ MAKE_ONPLAYMENU( tree_onplay_menu, ID2P(LANG_ONPLAY_MENU_TITLE), | |||
1135 | #if LCD_DEPTH > 1 | 1149 | #if LCD_DEPTH > 1 |
1136 | &set_backdrop_item, | 1150 | &set_backdrop_item, |
1137 | #endif | 1151 | #endif |
1138 | &list_viewers_item, &create_dir_item, &properties_item | 1152 | &list_viewers_item, &create_dir_item, &properties_item, |
1153 | #ifdef HAVE_RECORDING | ||
1154 | &set_recdir_item, | ||
1155 | #endif | ||
1139 | ); | 1156 | ); |
1140 | int onplay(char* file, int attr, int from) | 1157 | int onplay(char* file, int attr, int from) |
1141 | { | 1158 | { |