mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-21 18:25:02 +00:00
Create 'Saving Settings'
This commit is contained in:
parent
b3fe2d3c0f
commit
73099cddc2
24
settings.c
24
settings.c
@ -3725,7 +3725,23 @@ static bool setting_append_list_general_options(
|
||||
|
||||
END_SUB_GROUP(list, list_info);
|
||||
|
||||
START_SUB_GROUP(list, list_info, "Saving", group_info.name, subgroup_info);
|
||||
END_GROUP(list, list_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool setting_append_list_saving_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, "Saving Settings");
|
||||
|
||||
START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info);
|
||||
|
||||
CONFIG_BOOL(
|
||||
settings->sort_savefiles_enable,
|
||||
@ -6584,6 +6600,12 @@ rarch_setting_t *setting_new(unsigned mask)
|
||||
if (!setting_append_list_logging_options(&list, list_info))
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_SAVING_OPTIONS)
|
||||
{
|
||||
if (!setting_append_list_saving_options(&list, list_info))
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_REWIND_OPTIONS)
|
||||
{
|
||||
|
@ -89,7 +89,8 @@ enum setting_list_flags
|
||||
SL_FLAG_RECORDING_OPTIONS = (1 << 21),
|
||||
SL_FLAG_FRAME_THROTTLE_OPTIONS= (1 << 22),
|
||||
SL_FLAG_LOGGING_OPTIONS = (1 << 23),
|
||||
SL_FLAG_ALL = (1 << 24),
|
||||
SL_FLAG_SAVING_OPTIONS = (1 << 24),
|
||||
SL_FLAG_ALL = (1 << 25),
|
||||
};
|
||||
|
||||
#define SL_FLAG_ALL_SETTINGS (SL_FLAG_ALL - SL_FLAG_MAIN_MENU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user