From 21f6815187e5cc9760f4da06ac88d6b0df2cbc46 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sun, 1 Dec 2024 16:00:09 +0000 Subject: [PATCH] Fix loading of 1.5 and older 1.6 saves --- lib/modding/ModVerificationInfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/modding/ModVerificationInfo.cpp b/lib/modding/ModVerificationInfo.cpp index ab187cd15..72104462b 100644 --- a/lib/modding/ModVerificationInfo.cpp +++ b/lib/modding/ModVerificationInfo.cpp @@ -13,6 +13,7 @@ #include "CModHandler.h" #include "ModDescription.h" #include "ModIncompatibility.h" +#include "ModScope.h" #include "../json/JsonNode.h" #include "../VCMI_Lib.h" @@ -68,6 +69,9 @@ ModListVerificationStatus ModVerificationInfo::verifyListAgainstLocalMods(const if(modList.count(m)) continue; + if (m == ModScope::scopeBuiltin()) + continue; + if(VLC->modh->getModInfo(m).affectsGameplay()) result[m] = ModVerificationStatus::EXCESSIVE; } @@ -77,6 +81,9 @@ ModListVerificationStatus ModVerificationInfo::verifyListAgainstLocalMods(const auto & remoteModId = infoPair.first; auto & remoteModInfo = infoPair.second; + if (remoteModId == ModScope::scopeBuiltin()) + continue; + bool modAffectsGameplay = remoteModInfo.impactsGameplay; //parent mod affects gameplay if child affects too for(const auto & subInfoPair : modList)