From 905d31b8d7092dc159cdb29fff0d498efef76f95 Mon Sep 17 00:00:00 2001 From: Arseniy Shestakov Date: Wed, 15 Jan 2020 18:19:16 +0000 Subject: [PATCH] CModHandler: remove hardcoded wog mod integrity check Now we have unpacked WoG mod version that dont need specific data files. As far as I can tell only texts for commanders not going through proper mod system --- lib/CModHandler.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/CModHandler.cpp b/lib/CModHandler.cpp index fbeb0c037..2c9c79096 100644 --- a/lib/CModHandler.cpp +++ b/lib/CModHandler.cpp @@ -803,17 +803,6 @@ std::vector CModHandler::getModList(std::string path) std::string name = entry.getName(); name.erase(0, modDir.size()); //Remove path prefix - // check if wog is actually present. Hack-ish but better than crash - // TODO: remove soon (hopefully - before 0.96) - if (name == "WOG") - { - if (!CResourceHandler::get("initial")->existsResource(ResourceID("DATA/ZVS", EResType::DIRECTORY)) && - !CResourceHandler::get("initial")->existsResource(ResourceID("MODS/WOG/DATA/ZVS", EResType::DIRECTORY))) - { - continue; - } - } - if (!name.empty()) foundMods.push_back(name); }