Skip to content

Commit e5836da

Browse files
author
Swamp Ig
committed
Don't need to delete versions earlier than 2.0.10
The old versions will do election correctly (and not run) if new version is present, so no need to delete.
1 parent a3975b4 commit e5836da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎moduleManager.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public void Update()
6666

6767
#region Type election
6868
// Check for old version and MMSarbianExt
69-
var oldMM = AssemblyLoader.loadedAssemblies.Where(a => a.assembly.GetName().Name == Assembly.GetExecutingAssembly().GetName().Name).Where(a => a.assembly.GetName().Version.CompareTo(new System.Version(2, 1, 0)) == -1);
69+
var oldMM = AssemblyLoader.loadedAssemblies.Where(a => a.assembly.GetName().Name == Assembly.GetExecutingAssembly().GetName().Name).Where(a => a.assembly.GetName().Version.CompareTo(new System.Version(1, 5, 0)) == -1);
7070
var oldAssemblies = oldMM.Concat(AssemblyLoader.loadedAssemblies.Where(a => a.assembly.GetName().Name == "MMSarbianExt"));
7171
if (oldAssemblies.Any())
7272
{
7373
var badPaths = oldAssemblies.Select(a => a.path).Select(p => Uri.UnescapeDataString(new Uri(Path.GetFullPath(KSPUtil.ApplicationRootPath)).MakeRelativeUri(new Uri(p)).ToString().Replace('/', Path.DirectorySeparatorChar)));
74-
status = "You have old versions of Module Manager (older than 2.0.10) or MMSarbianExt.\nYou will need to remove them for Module Manager and the mods using it to work\nExit KSP and delete those files :\n" + String.Join("\n", badPaths.ToArray());
74+
status = "You have old versions of Module Manager (older than 1.5) or MMSarbianExt.\nYou will need to remove them for Module Manager and the mods using it to work\nExit KSP and delete those files :\n" + String.Join("\n", badPaths.ToArray());
7575
PopupDialog.SpawnPopupDialog("Old versions of Module Manager", status, "OK", false, HighLogic.Skin);
7676
loaded = true;
7777
print("[ModuleManager] Old version of Module Manager present. Stopping");

0 commit comments

Comments
 (0)