mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Add action_ok callback for FILE_PATH
This commit is contained in:
parent
985d378261
commit
97c7860cf2
@ -564,6 +564,12 @@ static int action_ok_file_load(const char *path,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int action_ok_file_path(const char *path,
|
||||
const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
return menu_action_setting_set(type, label, MENU_ACTION_OK);
|
||||
}
|
||||
|
||||
static int action_ok_set_path(const char *path,
|
||||
const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
@ -2122,6 +2128,9 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
|
||||
else
|
||||
return -1;
|
||||
break;
|
||||
case MENU_FILE_PATH:
|
||||
cbs->action_ok = action_ok_file_path;
|
||||
break;
|
||||
case MENU_FILE_FONT:
|
||||
case MENU_FILE_OVERLAY:
|
||||
case MENU_FILE_AUDIOFILTER:
|
||||
|
Loading…
Reference in New Issue
Block a user