Add menu_setting_get_enum_idx

This commit is contained in:
twinaphex 2016-06-18 22:45:32 +02:00
parent 442ebf2acf
commit b510b2fe26
2 changed files with 9 additions and 0 deletions

View File

@ -2279,6 +2279,13 @@ const char *menu_setting_get_values(rarch_setting_t *setting)
return setting->values;
}
enum menu_hash_enums menu_setting_get_enum_idx(rarch_setting_t *setting)
{
if (!setting)
return MENU_ENUM_LABEL_UNKNOWN;
return setting->enum_idx;
}
const char *menu_setting_get_name(rarch_setting_t *setting)
{
if (!setting)

View File

@ -340,6 +340,8 @@ enum setting_type menu_setting_get_type(rarch_setting_t *setting);
enum setting_type menu_setting_get_browser_selection_type(rarch_setting_t *setting);
enum menu_hash_enums menu_setting_get_enum_idx(rarch_setting_t *setting);
const char *menu_setting_get_values(rarch_setting_t *setting);
const char *menu_setting_get_name(rarch_setting_t *setting);