settings reader fix

This commit is contained in:
MihailRis
2024-05-05 16:04:00 +03:00
parent ba885e4e08
commit 179d2b7a25
3 changed files with 23 additions and 10 deletions
+4
View File
@@ -113,6 +113,10 @@ Setting* SettingsHandler::getSetting(const std::string& name) const {
return found->second;
}
bool SettingsHandler::has(const std::string& name) const {
return map.find(name) != map.end();
}
template<class T>
static void set_numeric_value(T* setting, const dynamic::Value& value) {
switch (value.type) {