mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
settings reader fix
This commit is contained in:
parent
ba885e4e08
commit
179d2b7a25
3 changed files with 23 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue