mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
remove the custom setting missing warning
This commit is contained in:
parent
7742b57c49
commit
4509607853
1 changed files with 13 additions and 7 deletions
|
@ -211,13 +211,19 @@ Result<> Mod::Impl::loadData() {
|
|||
}
|
||||
}
|
||||
else {
|
||||
log::logImpl(
|
||||
Severity::Warning,
|
||||
m_self,
|
||||
"Encountered unknown setting \"{}\" while loading "
|
||||
"settings",
|
||||
key
|
||||
);
|
||||
if (auto definition = this->getSettingDefinition(key)) {
|
||||
// Found a definition for this setting, it's most likely a custom setting
|
||||
// Don't warn it, as it's expected to be loaded by the mod
|
||||
}
|
||||
else {
|
||||
log::logImpl(
|
||||
Severity::Warning,
|
||||
m_self,
|
||||
"Encountered unknown setting \"{}\" while loading "
|
||||
"settings",
|
||||
key
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue