mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +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 true;
|
||||||
return false;
|
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_numeric_type(rarch_setting_t *setting);
|
||||||
|
|
||||||
|
bool setting_is_of_enum_type(rarch_setting_t *setting);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user