Avoid creating huge list of numbers for cheat-related settings
This commit is contained in:
parent
69b82e1fc2
commit
f1289f60ef
|
@ -12098,15 +12098,23 @@ static bool setting_append_list(
|
||||||
CHEAT_TYPE_DISABLED,CHEAT_TYPE_RUN_NEXT_IF_GT,1);
|
CHEAT_TYPE_DISABLED,CHEAT_TYPE_RUN_NEXT_IF_GT,1);
|
||||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||||
|
|
||||||
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.value, CHEAT_VALUE,
|
|
||||||
setting_uint_action_left_default,
|
CONFIG_UINT(
|
||||||
setting_uint_action_right_default,
|
list, list_info,
|
||||||
|
&cheat_manager_state.working_cheat.value,
|
||||||
|
MENU_ENUM_LABEL_CHEAT_VALUE,
|
||||||
|
MENU_ENUM_LABEL_VALUE_CHEAT_VALUE,
|
||||||
0,
|
0,
|
||||||
&setting_get_string_representation_hex_and_uint,
|
&group_info,
|
||||||
0,
|
&subgroup_info,
|
||||||
cheat_manager_get_state_search_size(cheat_manager_state.working_cheat.memory_search_size),
|
parent_group,
|
||||||
1);
|
general_write_handler,
|
||||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
general_read_handler);
|
||||||
|
menu_settings_list_current_add_range(list, list_info,
|
||||||
|
0, cheat_manager_get_state_search_size(cheat_manager_state.working_cheat.memory_search_size), 1, true, true);
|
||||||
|
(*list)[list_info->index - 1].get_string_representation = &setting_get_string_representation_hex_and_uint;
|
||||||
|
SETTINGS_DATA_LIST_CURRENT_ADD_FLAGS(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||||
|
|
||||||
|
|
||||||
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.address,
|
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.address,
|
||||||
CHEAT_ADDRESS,
|
CHEAT_ADDRESS,
|
||||||
|
@ -12184,16 +12192,21 @@ static bool setting_append_list(
|
||||||
RUMBLE_TYPE_DISABLED,RUMBLE_TYPE_END_LIST-1,1);
|
RUMBLE_TYPE_DISABLED,RUMBLE_TYPE_END_LIST-1,1);
|
||||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||||
|
|
||||||
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.rumble_value,
|
CONFIG_UINT(
|
||||||
CHEAT_RUMBLE_VALUE,
|
list, list_info,
|
||||||
setting_uint_action_left_default,
|
&cheat_manager_state.working_cheat.rumble_value,
|
||||||
setting_uint_action_right_default,
|
MENU_ENUM_LABEL_CHEAT_RUMBLE_VALUE,
|
||||||
|
MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_VALUE,
|
||||||
0,
|
0,
|
||||||
&setting_get_string_representation_hex_and_uint,
|
&group_info,
|
||||||
0,
|
&subgroup_info,
|
||||||
cheat_manager_get_state_search_size(cheat_manager_state.working_cheat.memory_search_size),
|
parent_group,
|
||||||
1);
|
general_write_handler,
|
||||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
general_read_handler);
|
||||||
|
menu_settings_list_current_add_range(list, list_info,
|
||||||
|
0, cheat_manager_get_state_search_size(cheat_manager_state.working_cheat.memory_search_size), 1, true, true);
|
||||||
|
(*list)[list_info->index - 1].get_string_representation = &setting_get_string_representation_hex_and_uint;
|
||||||
|
SETTINGS_DATA_LIST_CURRENT_ADD_FLAGS(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||||
|
|
||||||
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.rumble_port, CHEAT_RUMBLE_PORT,
|
CONFIG_UINT_CBS(cheat_manager_state.working_cheat.rumble_port, CHEAT_RUMBLE_PORT,
|
||||||
setting_uint_action_left_default,setting_uint_action_right_default,
|
setting_uint_action_left_default,setting_uint_action_right_default,
|
||||||
|
|
Loading…
Reference in New Issue