(setting_list.c) Initialize these values

This commit is contained in:
twinaphex 2017-04-24 22:55:14 +02:00
parent ee484b693c
commit b495d85845

View File

@ -79,6 +79,9 @@ rarch_setting_t setting_terminator_setting(void)
result.enforce_minrange = false;
result.enforce_maxrange = false;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = false;
return result;
@ -691,6 +694,9 @@ static rarch_setting_t setting_action_setting(const char* name,
result.enforce_minrange = false;
result.enforce_maxrange = false;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -751,6 +757,9 @@ static rarch_setting_t setting_group_setting(enum setting_type type, const char*
result.enforce_minrange = false;
result.enforce_maxrange = false;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = false;
return result;
@ -826,6 +835,9 @@ static rarch_setting_t setting_float_setting(const char* name,
result.original_value.fraction = *target;
result.default_value.fraction = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -900,6 +912,9 @@ static rarch_setting_t setting_uint_setting(const char* name,
result.original_value.unsigned_integer = *target;
result.default_value.unsigned_integer = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -974,6 +989,9 @@ static rarch_setting_t setting_hex_setting(const char* name,
result.original_value.unsigned_integer = *target;
result.default_value.unsigned_integer = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -1052,6 +1070,9 @@ static rarch_setting_t setting_bind_setting(const char* name,
result.value.target.keybind = target;
result.default_value.keybind = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -1198,6 +1219,9 @@ static rarch_setting_t setting_string_setting(enum setting_type type,
result.value.target.string = target;
result.default_value.string = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
switch (type)
{
case ST_DIR:
@ -1313,6 +1337,9 @@ static rarch_setting_t setting_subgroup_setting(enum setting_type type,
result.enforce_minrange = false;
result.enforce_maxrange = false;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -1391,6 +1418,9 @@ static rarch_setting_t setting_bool_setting(const char* name,
result.boolean.off_label = off;
result.boolean.on_label = on;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;
@ -1465,6 +1495,9 @@ static rarch_setting_t setting_int_setting(const char* name,
result.original_value.integer = *target;
result.default_value.integer = default_value;
result.cmd_trigger.idx = CMD_EVENT_NONE;
result.cmd_trigger.triggered = false;
result.dont_use_enum_idx_representation = dont_use_enum_idx;
return result;