Create setting_is_of_enum_type

This commit is contained in:
twinaphex 2015-05-06 01:38:26 +02:00
parent c344a686cc
commit 5e4348ed5d
2 changed files with 13 additions and 0 deletions

View File

@ -6652,3 +6652,14 @@ bool setting_is_of_numeric_type(rarch_setting_t *setting)
return true;
return false;
}
bool setting_is_of_enum_type(rarch_setting_t *setting)
{
if (
setting &&
(setting->type == ST_STRING) &&
setting->values
)
return true;
return false;
}

View File

@ -349,6 +349,8 @@ bool setting_is_of_general_type(rarch_setting_t *setting);
bool setting_is_of_numeric_type(rarch_setting_t *setting);
bool setting_is_of_enum_type(rarch_setting_t *setting);
#ifdef __cplusplus
}
#endif