| 114 | } |
| 115 | |
| 116 | int Options_GetInt(const char* key, int min, int max, int defValue) { |
| 117 | cc_string str; |
| 118 | int value; |
| 119 | if (!Options_UNSAFE_Get(key, &str)) return defValue; |
| 120 | if (!Convert_ParseInt(&str, &value)) return defValue; |
| 121 | |
| 122 | Math_Clamp(value, min, max); |
| 123 | return value; |
| 124 | } |
| 125 | |
| 126 | cc_bool Options_GetBool(const char* key, cc_bool defValue) { |
| 127 | cc_string str; |
no test coverage detected