Create menu_input_dialog_get_label_buffer functions

This commit is contained in:
twinaphex 2016-09-15 19:01:33 +02:00
parent 982a818b48
commit e8e16aca9e
3 changed files with 15 additions and 2 deletions

View File

@ -616,8 +616,6 @@ static void rgui_render(void *data)
menu_input_ctl(MENU_INPUT_CTL_KEYBOARD_LABEL, &label);
if (!str)
str = "";
snprintf(msg, sizeof(msg), "%s\n%s", label, str);
rgui_render_messagebox(msg);
}

View File

@ -138,10 +138,21 @@ static menu_input_t *menu_input_get_ptr(void)
return &menu_input_state;
}
static const char **menu_input_keyboard_buffer;
static char menu_input_keyboard_label_setting[256] = {0};
static char menu_input_keyboard_label[256] = {0};
const char *menu_input_dialog_get_label_buffer(void)
{
return menu_input_keyboard_label;
}
const char *menu_input_dialog_get_label_setting_buffer(void)
{
return menu_input_keyboard_label_setting;
}
void menu_input_dialog_end(void)
{
menu_input_t *menu_input = menu_input_get_ptr();

View File

@ -109,6 +109,10 @@ typedef struct menu_input_ctx_line
input_keyboard_line_complete_t cb;
} menu_input_ctx_line_t;
const char *menu_input_dialog_get_label_setting_buffer(void);
const char *menu_input_dialog_get_label_buffer(void);
const char *menu_input_dialog_get_buffer(void);
bool menu_input_dialog_start_search(void);