This commit is contained in:
twinaphex 2015-12-10 14:00:28 +01:00
parent 8acaa19d01
commit a1b4ba9280
2 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,7 @@ int generic_action_ok_displaylist_push(const char *path,
case ACTION_OK_DL_OPEN_ARCHIVE: case ACTION_OK_DL_OPEN_ARCHIVE:
if (menu) if (menu)
{ {
menu_path = menu->scratch2_buf; menu_path = menu->scratch2_buf;
content_path = menu->scratch_buf; content_path = menu->scratch_buf;
} }
fill_pathname_join(detect_content_path, menu_path, content_path, fill_pathname_join(detect_content_path, menu_path, content_path,

View File

@ -204,7 +204,7 @@ static void menu_input_search_callback(void *userdata, const char *str)
bool menu_input_ctl(enum menu_input_ctl_state state, void *data) bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
{ {
menu_input_t *menu_input = menu_input_get_ptr(); menu_input_t *menu_input = menu_input_get_ptr();
menu_handle_t *menu = menu_driver_get_ptr(); menu_handle_t *menu = NULL;
if (!menu_input) if (!menu_input)
return false; return false;
@ -212,6 +212,8 @@ bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
switch (state) switch (state)
{ {
case MENU_INPUT_CTL_SEARCH_START: case MENU_INPUT_CTL_SEARCH_START:
menu = menu_driver_get_ptr();
menu_input->keyboard.display = true; menu_input->keyboard.display = true;
menu_input->keyboard.label = menu_hash_to_str(MENU_VALUE_SEARCH); menu_input->keyboard.label = menu_hash_to_str(MENU_VALUE_SEARCH);
menu_input->keyboard.buffer = menu_input->keyboard.buffer =