mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-23 11:12:33 +00:00
Move menu_entries_set_current_path_selection to menu_entries.c
and make it static
This commit is contained in:
parent
0ab30f4409
commit
aa4cc4f4a2
@ -121,6 +121,28 @@ int menu_action_setting_set_current_string_path(
|
||||
return menu_action_setting_apply(setting);
|
||||
}
|
||||
|
||||
static int menu_entries_set_current_path_selection(
|
||||
rarch_setting_t *setting, const char *start_path,
|
||||
const char *label, unsigned type,
|
||||
unsigned action)
|
||||
{
|
||||
switch (action)
|
||||
{
|
||||
case MENU_ACTION_OK:
|
||||
menu_entries_push(driver.menu->menu_stack,
|
||||
start_path, label, type,
|
||||
driver.menu->selection_ptr);
|
||||
|
||||
if (setting->cmd_trigger.idx != RARCH_CMD_NONE)
|
||||
setting->cmd_trigger.triggered = true;
|
||||
break;
|
||||
case MENU_ACTION_START:
|
||||
*setting->value.string = '\0';
|
||||
break;
|
||||
}
|
||||
|
||||
return menu_action_setting_apply(setting);
|
||||
}
|
||||
|
||||
static int menu_action_handle_setting(rarch_setting_t *setting,
|
||||
unsigned type, const char *label, unsigned action)
|
||||
|
@ -925,30 +925,6 @@ void menu_flush_stack_label(file_list_t *list,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int menu_entries_set_current_path_selection(
|
||||
rarch_setting_t *setting, const char *start_path,
|
||||
const char *label, unsigned type,
|
||||
unsigned action)
|
||||
{
|
||||
switch (action)
|
||||
{
|
||||
case MENU_ACTION_OK:
|
||||
menu_entries_push(driver.menu->menu_stack,
|
||||
start_path, label, type,
|
||||
driver.menu->selection_ptr);
|
||||
|
||||
if (setting->cmd_trigger.idx != RARCH_CMD_NONE)
|
||||
setting->cmd_trigger.triggered = true;
|
||||
break;
|
||||
case MENU_ACTION_START:
|
||||
*setting->value.string = '\0';
|
||||
break;
|
||||
}
|
||||
|
||||
return menu_action_setting_apply(setting);
|
||||
}
|
||||
|
||||
bool menu_entries_init(menu_handle_t *menu)
|
||||
{
|
||||
if (!menu)
|
||||
|
@ -39,11 +39,6 @@ void menu_entries_pop_stack(file_list_t *list, const char *needle);
|
||||
void menu_flush_stack_type(file_list_t *list, unsigned final_type);
|
||||
void menu_flush_stack_label(file_list_t *list, const char *needle);
|
||||
|
||||
int menu_entries_set_current_path_selection(
|
||||
rarch_setting_t *setting, const char *start_path,
|
||||
const char *label, unsigned type,
|
||||
unsigned action);
|
||||
|
||||
bool menu_entries_init(menu_handle_t *menu);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user