mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-07 14:23:29 +00:00
Add Archive Options
This commit is contained in:
parent
8250cb635d
commit
f921d2e2d4
@ -42,6 +42,8 @@ static void get_title(const char *label, const char *dir,
|
||||
strlcpy(title, "CORE PERFORMANCE COUNTERS", sizeof_title);
|
||||
else if (!strcmp(label, "Shader Options"))
|
||||
strlcpy(title, "SHADER OPTIONS", sizeof_title);
|
||||
else if (!strcmp(label, "Archive Options"))
|
||||
strlcpy(title, "ARCHIVE OPTIONS", sizeof_title);
|
||||
else if (!strcmp(label, "video_shader_parameters"))
|
||||
strlcpy(title, "SHADER PARAMETERS (CURRENT)", sizeof_title);
|
||||
else if (!strcmp(label, "video_shader_preset_parameters"))
|
||||
|
@ -4576,6 +4576,22 @@ static bool setting_data_append_list_menu_options(
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool setting_data_append_list_archive_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;
|
||||
|
||||
START_GROUP(group_info, "Archive Options");
|
||||
START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info);
|
||||
|
||||
END_SUB_GROUP(list, list_info);
|
||||
END_GROUP(list, list_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool setting_data_append_list_netplay_options(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info)
|
||||
@ -5199,6 +5215,12 @@ rarch_setting_t *setting_data_new(unsigned mask)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_ARCHIVE_OPTIONS)
|
||||
{
|
||||
if (!setting_data_append_list_archive_options(&list, list_info))
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mask & SL_FLAG_USER_OPTIONS)
|
||||
{
|
||||
if (!setting_data_append_list_user_options(&list, list_info))
|
||||
|
@ -75,7 +75,8 @@ enum setting_list_flags
|
||||
SL_FLAG_PATH_OPTIONS = (1 << 12),
|
||||
SL_FLAG_PRIVACY_OPTIONS = (1 << 13),
|
||||
SL_FLAG_PLAYLIST_OPTIONS = (1 << 14),
|
||||
SL_FLAG_ALL = (1 << 15),
|
||||
SL_FLAG_ARCHIVE_OPTIONS = (1 << 15),
|
||||
SL_FLAG_ALL = (1 << 16),
|
||||
};
|
||||
|
||||
#define SL_FLAG_ALL_SETTINGS (SL_FLAG_ALL - SL_FLAG_MAIN_MENU)
|
||||
|
Loading…
Reference in New Issue
Block a user