remove the custom setting missing warning

This commit is contained in:
altalk23 2024-06-21 11:13:54 +03:00
parent 7742b57c49
commit 4509607853

View file

@ -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
);
}
}
}
}