mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Implement some TODO's, fix sonar warnings
This commit is contained in:
@ -262,11 +262,9 @@ void CContentHandler::init()
|
||||
bool CContentHandler::preloadData(const ModDescription & mod, bool validate)
|
||||
{
|
||||
bool result = true;
|
||||
if (validate && mod.getID() != ModScope::scopeBuiltin()) // TODO: remove workaround
|
||||
{
|
||||
if (!JsonUtils::validate(mod.getLocalConfig(), "vcmi:mod", mod.getID()))
|
||||
result = false;
|
||||
}
|
||||
|
||||
if (!JsonUtils::validate(mod.getLocalConfig(), "vcmi:mod", mod.getID()))
|
||||
result = false;
|
||||
|
||||
for(auto & handler : handlers)
|
||||
{
|
||||
|
Reference in New Issue
Block a user