mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +00:00
Create setting_is_of_enum_type
This commit is contained in:
parent
c344a686cc
commit
5e4348ed5d
11
settings.c
11
settings.c
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user