1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00
This commit is contained in:
Laserlicht 2023-12-25 19:48:28 +01:00 committed by GitHub
parent b1f15983de
commit 67568b2b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -718,9 +718,9 @@ void CModListView::installFiles(QStringList files)
{
if(filename.endsWith(".zip"))
mods.push_back(filename);
if(filename.endsWith(".h3m") || filename.endsWith(".h3c") || filename.endsWith(".vmap") || filename.endsWith(".vcmp"))
else if(filename.endsWith(".h3m") || filename.endsWith(".h3c") || filename.endsWith(".vmap") || filename.endsWith(".vcmp"))
maps.push_back(filename);
if(filename.endsWith(".json"))
else if(filename.endsWith(".json"))
{
//download and merge additional files
auto repoData = JsonUtils::JsonFromFile(filename).toMap();
@ -744,7 +744,7 @@ void CModListView::installFiles(QStringList files)
}
repositories.push_back(repoData);
}
if(filename.endsWith(".png"))
else if(filename.endsWith(".png"))
images.push_back(filename);
}