mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(Settings) Create setting_is_of_numeric_type
This commit is contained in:
parent
e18aaf899e
commit
bfbe4304ba
12
settings.c
12
settings.c
@ -6640,3 +6640,15 @@ bool setting_is_of_general_type(rarch_setting_t *setting)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool setting_is_of_numeric_type(rarch_setting_t *setting)
|
||||
{
|
||||
if (
|
||||
setting &&
|
||||
(setting->type == ST_INT) &&
|
||||
(setting->type == ST_UINT) &&
|
||||
(setting->type == ST_FLOAT)
|
||||
)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
@ -347,6 +347,8 @@ bool setting_is_of_path_type(rarch_setting_t *setting);
|
||||
|
||||
bool setting_is_of_general_type(rarch_setting_t *setting);
|
||||
|
||||
bool setting_is_of_numeric_type(rarch_setting_t *setting);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user