diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 3e33bb5b08..0a0407bb11 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -5577,6 +5577,29 @@ static bool setting_append_list_menu_file_browser_options( return true; } +static bool setting_append_list_cheevos_options( + rarch_setting_t **list, + rarch_setting_info_t *list_info, + const char *parent_group) +{ +#ifdef HAVE_CHEEVOS + rarch_setting_group_info_t group_info = {0}; + rarch_setting_group_info_t subgroup_info = {0}; + settings_t *settings = config_get_ptr(); + + START_GROUP(group_info, + //menu_hash_to_str(MENU_LABEL_VALUE_CHEEVOS_SETTINGS), + "Retro Achievements", + parent_group); + START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info, parent_group); + + END_SUB_GROUP(list, list_info, parent_group); + END_GROUP(list, list_info, parent_group); +#endif + + return true; +} + static bool setting_append_list_core_updater_options( rarch_setting_t **list, rarch_setting_info_t *list_info, @@ -6724,6 +6747,12 @@ rarch_setting_t *menu_setting_new(unsigned mask) goto error; } + if (mask & SL_FLAG_CHEEVOS_OPTIONS) + { + if (!setting_append_list_cheevos_options(&list, list_info, root)) + goto error; + } + if (mask & SL_FLAG_CORE_UPDATER_OPTIONS) { if (!setting_append_list_core_updater_options(&list, list_info, root)) diff --git a/menu/menu_setting.h b/menu/menu_setting.h index 0b29df8299..3168bdef07 100644 --- a/menu/menu_setting.h +++ b/menu/menu_setting.h @@ -77,20 +77,21 @@ enum setting_list_flags SL_FLAG_MENU_OPTIONS = (1 << 13), SL_FLAG_MULTIMEDIA_OPTIONS = (1 << 14), SL_FLAG_UI_OPTIONS = (1 << 15), - SL_FLAG_CORE_UPDATER_OPTIONS = (1 << 16), - SL_FLAG_NETPLAY_OPTIONS = (1 << 17), - SL_FLAG_USER_OPTIONS = (1 << 18), - SL_FLAG_DIRECTORY_OPTIONS = (1 << 19), - SL_FLAG_PRIVACY_OPTIONS = (1 << 20), - SL_FLAG_PLAYLIST_OPTIONS = (1 << 21), - SL_FLAG_MENU_BROWSER_OPTIONS = (1 << 22), - SL_FLAG_PATCH_OPTIONS = (1 << 23), - SL_FLAG_RECORDING_OPTIONS = (1 << 24), - SL_FLAG_FRAME_THROTTLE_OPTIONS= (1 << 25), - SL_FLAG_LOGGING_OPTIONS = (1 << 26), - SL_FLAG_SAVING_OPTIONS = (1 << 27), - SL_FLAG_ALL = (1 << 28), - SL_FLAG_ALLOW_EMPTY_LIST = (1 << 29) + SL_FLAG_CHEEVOS_OPTIONS = (1 << 16), + SL_FLAG_CORE_UPDATER_OPTIONS = (1 << 17), + SL_FLAG_NETPLAY_OPTIONS = (1 << 18), + SL_FLAG_USER_OPTIONS = (1 << 19), + SL_FLAG_DIRECTORY_OPTIONS = (1 << 20), + SL_FLAG_PRIVACY_OPTIONS = (1 << 21), + SL_FLAG_PLAYLIST_OPTIONS = (1 << 22), + SL_FLAG_MENU_BROWSER_OPTIONS = (1 << 23), + SL_FLAG_PATCH_OPTIONS = (1 << 24), + SL_FLAG_RECORDING_OPTIONS = (1 << 25), + SL_FLAG_FRAME_THROTTLE_OPTIONS= (1 << 26), + SL_FLAG_LOGGING_OPTIONS = (1 << 27), + SL_FLAG_SAVING_OPTIONS = (1 << 28), + SL_FLAG_ALL = (1 << 29), + SL_FLAG_ALLOW_EMPTY_LIST = (1 << 30) }; typedef struct rarch_setting rarch_setting_t;