mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 17:23:48 +00:00
Add 'Frame Throttle Settings'
This commit is contained in:
parent
f372e4a13b
commit
98fbe77bec
24
settings.c
24
settings.c
@ -3849,7 +3849,23 @@ static bool setting_append_list_general_options(
|
||||
|
||||
END_SUB_GROUP(list, list_info);
|
||||
|
||||
START_SUB_GROUP(list, list_info, "Frame throttling", group_info.name, subgroup_info);
|
||||
END_GROUP(list, list_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool setting_append_list_frame_throttling_options(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info)
|
||||
{
|
||||
rarch_setting_group_info_t group_info;
|
||||
rarch_setting_group_info_t subgroup_info;
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
START_GROUP(group_info, "Frame Throttle Settings");
|
||||
|
||||
START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info);
|
||||
|
||||
CONFIG_BOOL(
|
||||
settings->fastforward_ratio_throttle_enable,
|
||||
@ -6563,6 +6579,12 @@ rarch_setting_t *setting_new(unsigned mask)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_FRAME_THROTTLE_OPTIONS)
|
||||
{
|
||||
if (!setting_append_list_frame_throttling_options(&list, list_info))
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_FONT_OPTIONS)
|
||||
{
|
||||
if (!setting_append_list_font_options(&list, list_info))
|
||||
|
@ -87,7 +87,8 @@ enum setting_list_flags
|
||||
SL_FLAG_ARCHIVE_OPTIONS = (1 << 20),
|
||||
SL_FLAG_PATCH_OPTIONS = (1 << 21),
|
||||
SL_FLAG_RECORDING_OPTIONS = (1 << 21),
|
||||
SL_FLAG_ALL = (1 << 22),
|
||||
SL_FLAG_FRAME_THROTTLE_OPTIONS= (1 << 22),
|
||||
SL_FLAG_ALL = (1 << 23),
|
||||
};
|
||||
|
||||
#define SL_FLAG_ALL_SETTINGS (SL_FLAG_ALL - SL_FLAG_MAIN_MENU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user