mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
(menu) turn these into macros
This commit is contained in:
parent
b065e0d299
commit
e6ca330337
@ -4962,23 +4962,11 @@ static void menu_settings_list_current_add_range(
|
|||||||
(*list)[list_info->index - 1].flags |= SD_FLAG_HAS_RANGE;
|
(*list)[list_info->index - 1].flags |= SD_FLAG_HAS_RANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void menu_settings_list_current_add_values(
|
#define menu_settings_list_current_idx(list_info) (list_info->index - 1)
|
||||||
rarch_setting_t **list,
|
|
||||||
rarch_setting_info_t *list_info,
|
|
||||||
const char *values)
|
|
||||||
{
|
|
||||||
unsigned idx = list_info->index - 1;
|
|
||||||
(*list)[idx].values = values;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void menu_settings_list_current_add_cmd(
|
#define menu_settings_list_current_add_values(list, list_info, str) ((*(list))[menu_settings_list_current_idx((list_info))].values = (str))
|
||||||
rarch_setting_t **list,
|
|
||||||
rarch_setting_info_t *list_info,
|
#define menu_settings_list_current_add_cmd(list, list_info, str) (*(list))[menu_settings_list_current_idx(list_info)].cmd_trigger.idx = (str)
|
||||||
enum event_command values)
|
|
||||||
{
|
|
||||||
unsigned idx = list_info->index - 1;
|
|
||||||
(*list)[idx].cmd_trigger.idx = values;
|
|
||||||
}
|
|
||||||
|
|
||||||
int menu_setting_generic(rarch_setting_t *setting, bool wraparound)
|
int menu_setting_generic(rarch_setting_t *setting, bool wraparound)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user