mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Update CONFIG_INT settings dynamically
This commit is contained in:
parent
3ac66e1118
commit
b4571befab
@ -2084,7 +2084,6 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler);
|
general_read_handler);
|
||||||
menu_settings_list_current_add_range(list, list_info, -1, 0, 1, true, false);
|
menu_settings_list_current_add_range(list, list_info, -1, 0, 1, true, false);
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_STATE_SLOT);
|
|
||||||
|
|
||||||
CONFIG_ACTION(
|
CONFIG_ACTION(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
@ -3204,7 +3203,6 @@ static bool setting_append_list(
|
|||||||
list,
|
list,
|
||||||
list_info,
|
list_info,
|
||||||
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X);
|
|
||||||
|
|
||||||
CONFIG_INT(
|
CONFIG_INT(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
@ -3222,7 +3220,6 @@ static bool setting_append_list(
|
|||||||
list,
|
list,
|
||||||
list_info,
|
list_info,
|
||||||
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_Y);
|
|
||||||
|
|
||||||
CONFIG_UINT(
|
CONFIG_UINT(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
|
@ -1521,6 +1521,8 @@ bool CONFIG_INT(
|
|||||||
if (value.name)
|
if (value.name)
|
||||||
value.name_hash = msg_hash_calculate(value.name);
|
value.name_hash = msg_hash_calculate(value.name);
|
||||||
(*list)[list_info->index++] = value;
|
(*list)[list_info->index++] = value;
|
||||||
|
menu_settings_list_current_add_enum_idx(list, list_info, name_enum_idx);
|
||||||
|
menu_settings_list_current_add_enum_value_idx(list, list_info, SHORT_enum_idx);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user