diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 3bb32d7f98..d0a86d9d14 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -419,28 +419,52 @@ static rarch_setting_t setting_uint_setting(const char* name, const char *group, const char *subgroup, const char *parent_group, change_handler_t change_handler, change_handler_t read_handler) { - rarch_setting_t result = {ST_NONE}; + rarch_setting_t result; - result.type = ST_UINT; - result.name = name; - result.size = sizeof(unsigned int); - result.short_description = short_description; - result.group = group; - result.subgroup = subgroup; - result.parent_group = parent_group; + result.enum_idx = MENU_ENUM_LABEL_UNKNOWN; + result.type = ST_UINT; + + result.size = sizeof(unsigned int); + + result.name = name; + result.name_hash = 0; + result.short_description = short_description; + result.group = group; + result.subgroup = subgroup; + result.parent_group = parent_group; + 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 = change_handler; + result.read_handler = read_handler; + result.action_start = setting_generic_action_start_default; + result.action_left = setting_uint_action_left_default; + result.action_right = setting_uint_action_right_default; + result.action_up = NULL; + result.action_down = NULL; + result.action_cancel = NULL; + result.action_ok = setting_generic_action_ok_default; + result.action_select = setting_generic_action_ok_default; + result.get_string_representation = &setting_get_string_representation_uint; + + 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; - result.change_handler = change_handler; - result.read_handler = read_handler; result.value.target.unsigned_integer = target; result.original_value.unsigned_integer = *target; result.default_value.unsigned_integer = default_value; - result.action_start = setting_generic_action_start_default; - result.action_left = setting_uint_action_left_default; - result.action_right = setting_uint_action_right_default; - result.action_ok = setting_generic_action_ok_default; - result.action_select = setting_generic_action_ok_default; - result.action_cancel = NULL; - result.get_string_representation = &setting_get_string_representation_uint; return result; }