uiimage.c: added reset of the char input buffer when selecting an entry in the file manager (it's mainly for MESS --> no whatsnew)

This commit is contained in:
Fabio Priuli 2011-04-05 17:48:34 +00:00
parent 33e4824d22
commit 629af025f1

View File

@ -844,6 +844,10 @@ static void menu_file_selector(running_machine &machine, ui_menu *menu, void *pa
ui_menu_stack_pop(machine);
break;
}
// reset the char buffer when pressing IPT_UI_SELECT
if (menustate->filename_buffer[0] != '\0')
memset(menustate->filename_buffer, '\0', ARRAY_LENGTH(menustate->filename_buffer));
}
else if (event->iptkey == IPT_SPECIAL)
{