Browse Source

Partially revert "Translation" type changes to avoid breaking mods

Ivan Savenko 2 years ago
parent
commit
7e034814c1
2 changed files with 0 additions and 7 deletions
  1. 0 3
      launcher/modManager/cmodlist.cpp
  2. 0 4
      lib/modding/CModInfo.cpp

+ 0 - 3
launcher/modManager/cmodlist.cpp

@@ -103,9 +103,6 @@ bool CModEntry::isVisible() const
 		// Do not show not installed translation mods to languages other than player language
 		if (localData.empty() && getBaseValue("language") != QString::fromStdString(settings["general"]["language"].String()) )
 			return false;
-
-		if (isSubmod())
-			return false;
 	}
 
 	return !localData.isEmpty() || !repository.isEmpty();

+ 0 - 4
lib/modding/CModInfo.cpp

@@ -119,10 +119,6 @@ void CModInfo::loadLocalData(const JsonNode & data)
 				logGlobal->warn("Translation mod %s was not loaded: language mismatch!", verificationInfo.name);
 			implicitlyEnabled = false;
 		}
-
-		// Translation submods are always explicitly enabled
-		if (identifier.find_last_of('.') != std::string::npos)
-			explicitlyEnabled = true;
 	}
 	if (config["modType"].String() == "Compatibility")
 	{