1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Hotfix for mods dependencies

This commit is contained in:
nordsoft 2022-09-25 15:36:46 +04:00
parent 4205701f96
commit af98ce2e3d

View File

@ -206,6 +206,8 @@ void CModList::resetRepositories()
void CModList::addRepository(QVariantMap data)
{
for(auto & key : data.keys())
data[key.toLower()] = data.take(key);
repositories.push_back(copyField(data, "version", "latestVersion"));
}
@ -231,11 +233,7 @@ static QVariant getValue(QVariant input, QString path)
QString remainder = "/" + path.section('/', 2, -1);
entryName.remove(0, 1);
QMap<QString, QString> keyNormalize;
for(auto & key : input.toMap().keys())
keyNormalize[key.toLower()] = key;
return getValue(input.toMap().value(keyNormalize[entryName]), remainder);
return getValue(input.toMap().value(entryName), remainder);
}
else
{