mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Remove code duplication action_ok_file_path
This commit is contained in:
parent
821e27b11e
commit
e9d0803ddc
@ -564,12 +564,6 @@ static int action_ok_file_load(const char *path,
|
|||||||
return 0;
|
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,
|
static int action_ok_set_path(const char *path,
|
||||||
const char *label, unsigned type, size_t idx)
|
const char *label, unsigned type, size_t idx)
|
||||||
{
|
{
|
||||||
@ -2099,8 +2093,6 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
|
|||||||
cbs->action_ok = action_ok_restart_content;
|
cbs->action_ok = action_ok_restart_content;
|
||||||
else if (!strcmp(label, "take_screenshot"))
|
else if (!strcmp(label, "take_screenshot"))
|
||||||
cbs->action_ok = action_ok_screenshot;
|
cbs->action_ok = action_ok_screenshot;
|
||||||
else if (!strcmp(label, "video_refresh_rate_auto"))
|
|
||||||
cbs->action_ok = action_ok_file_path;
|
|
||||||
else
|
else
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
@ -2136,9 +2128,6 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
|
|||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case MENU_FILE_PATH:
|
|
||||||
cbs->action_ok = action_ok_file_path;
|
|
||||||
break;
|
|
||||||
case MENU_FILE_FONT:
|
case MENU_FILE_FONT:
|
||||||
case MENU_FILE_OVERLAY:
|
case MENU_FILE_OVERLAY:
|
||||||
case MENU_FILE_AUDIOFILTER:
|
case MENU_FILE_AUDIOFILTER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user