mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Menu) Rename some more functions with prefix rgui_
This commit is contained in:
parent
f8c37fc933
commit
4ab64bcd8f
@ -905,7 +905,7 @@ static int menu_settings_iterate(rgui_handle_t *rgui, unsigned action)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int ret = rgui_settings_toggle_setting(rgui, type, action, menu_type);
|
int ret = menu_settings_toggle_setting(rgui, type, action, menu_type);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -371,7 +371,7 @@ bool menu_replace_config(const char *path);
|
|||||||
|
|
||||||
bool menu_save_new_config(void);
|
bool menu_save_new_config(void);
|
||||||
|
|
||||||
int rgui_settings_toggle_setting(rgui_handle_t *rgui, unsigned setting, unsigned action, unsigned menu_type);
|
int menu_settings_toggle_setting(rgui_handle_t *rgui, unsigned setting, unsigned action, unsigned menu_type);
|
||||||
int menu_set_settings(void *data, unsigned setting, unsigned action);
|
int menu_set_settings(void *data, unsigned setting, unsigned action);
|
||||||
void menu_set_settings_label(char *type_str, size_t type_str_size, unsigned *w, unsigned type);
|
void menu_set_settings_label(char *type_str, size_t type_str_size, unsigned *w, unsigned type);
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ static int shader_manager_toggle_setting(rgui_handle_t *rgui, unsigned setting,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int rgui_core_setting_toggle(unsigned setting, rgui_action_t action)
|
static int menu_core_setting_toggle(unsigned setting, rgui_action_t action)
|
||||||
{
|
{
|
||||||
unsigned index = setting - RGUI_SETTINGS_CORE_OPTION_START;
|
unsigned index = setting - RGUI_SETTINGS_CORE_OPTION_START;
|
||||||
switch (action)
|
switch (action)
|
||||||
@ -270,14 +270,14 @@ static int rgui_core_setting_toggle(unsigned setting, rgui_action_t action)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rgui_settings_toggle_setting(rgui_handle_t *rgui, unsigned setting, rgui_action_t action, unsigned menu_type)
|
int menu_settings_toggle_setting(rgui_handle_t *rgui, unsigned setting, rgui_action_t action, unsigned menu_type)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SHADER_MANAGER
|
#ifdef HAVE_SHADER_MANAGER
|
||||||
if (setting >= RGUI_SETTINGS_SHADER_FILTER && setting <= RGUI_SETTINGS_SHADER_LAST)
|
if (setting >= RGUI_SETTINGS_SHADER_FILTER && setting <= RGUI_SETTINGS_SHADER_LAST)
|
||||||
return shader_manager_toggle_setting(rgui, setting, action);
|
return shader_manager_toggle_setting(rgui, setting, action);
|
||||||
#endif
|
#endif
|
||||||
if (setting >= RGUI_SETTINGS_CORE_OPTION_START)
|
if (setting >= RGUI_SETTINGS_CORE_OPTION_START)
|
||||||
return rgui_core_setting_toggle(setting, action);
|
return menu_core_setting_toggle(setting, action);
|
||||||
|
|
||||||
return menu_set_settings(rgui, setting, action);
|
return menu_set_settings(rgui, setting, action);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user