| 27 | } |
| 28 | |
| 29 | void GeneralUtils::DoubleValidCheck(double* source, const char* section, const char* tag, double defaultValue, double min, double max) |
| 30 | { |
| 31 | if (*source < min || *source>max) |
| 32 | { |
| 33 | Debug::Log("[Developer warning][%s]%s=%f is invalid! Reset to %f.\n", section, tag, *source, defaultValue); |
| 34 | *source = defaultValue; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | const wchar_t* GeneralUtils::LoadStringOrDefault(const char* key, const wchar_t* defaultValue) |
| 39 | { |
nothing calls this directly
no outgoing calls
no test coverage detected