(Settings) Create setting_is_of_numeric_type

This commit is contained in:
twinaphex 2015-05-06 01:34:39 +02:00
parent e18aaf899e
commit bfbe4304ba
2 changed files with 14 additions and 0 deletions

View File

@ -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;
}

View File

@ -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