mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Cleanups
This commit is contained in:
parent
d88b6c9921
commit
795bdd351b
@ -469,6 +469,54 @@ static rarch_setting_t setting_uint_setting(const char* name,
|
||||
return result;
|
||||
}
|
||||
|
||||
static rarch_setting_t menu_setting_terminator_setting(void)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
result.enum_idx = MENU_ENUM_LABEL_UNKNOWN;
|
||||
result.type = ST_NONE;
|
||||
|
||||
result.size = 0;
|
||||
|
||||
result.name = NULL;
|
||||
result.name_hash = 0;
|
||||
result.short_description = NULL;
|
||||
result.group = NULL;
|
||||
result.subgroup = NULL;
|
||||
result.parent_group = NULL;
|
||||
result.values = NULL;
|
||||
|
||||
result.index = 0;
|
||||
result.index_offset = 0;
|
||||
|
||||
result.min = 0.0;
|
||||
result.max = 0.0;
|
||||
|
||||
result.flags = 0;
|
||||
result.free_flags = 0;
|
||||
|
||||
result.change_handler = NULL;
|
||||
result.read_handler = NULL;
|
||||
result.action_start = NULL;
|
||||
result.action_left = NULL;
|
||||
result.action_right = NULL;
|
||||
result.action_up = NULL;
|
||||
result.action_down = NULL;
|
||||
result.action_cancel = NULL;
|
||||
result.action_ok = NULL;
|
||||
result.action_select = NULL;
|
||||
result.get_string_representation = NULL;
|
||||
|
||||
result.bind_type = 0;
|
||||
result.browser_selection_type = ST_NONE;
|
||||
result.step = 0.0f;
|
||||
result.rounding_fraction = NULL;
|
||||
result.enforce_minrange = false;
|
||||
result.enforce_maxrange = false;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* setting_hex_setting:
|
||||
* @name : name of setting.
|
||||
@ -8055,10 +8103,7 @@ static rarch_setting_t *menu_setting_new_internal(rarch_setting_info_t *list_inf
|
||||
SETTINGS_LIST_DIRECTORY,
|
||||
SETTINGS_LIST_PRIVACY
|
||||
};
|
||||
rarch_setting_t terminator =
|
||||
{
|
||||
ST_NONE
|
||||
};
|
||||
rarch_setting_t terminator = menu_setting_terminator_setting();
|
||||
const char *root = menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_MAIN_MENU);
|
||||
rarch_setting_t *list = (rarch_setting_t*)calloc(
|
||||
list_info->size, sizeof(*list));
|
||||
|
Loading…
x
Reference in New Issue
Block a user