Skip to content

Commit 2ff89d5

Browse files
committed
Compatibility fix for Rimworld 1.0.2150
1 parent f8df230 commit 2ff89d5

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Assemblies/ModSwitch.dll

0 Bytes
Binary file not shown.

Source/ModSwitch/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
[assembly: System.Reflection.AssemblyCopyright("Copyright © DoctorVanGogh 2017")]
1313
[assembly: System.Runtime.InteropServices.ComVisible(false)]
1414
[assembly: System.Runtime.InteropServices.Guid("ab2e8e89-3d1d-4e36-a0ae-489b6ebc84a6")]
15-
[assembly: System.Reflection.AssemblyVersion("1.7.1.223")]
15+
[assembly: System.Reflection.AssemblyVersion("1.7.1.224")]
1616

1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.1.223
1+
1.7.1.224

Source/ModSwitch/[Patches]/Patches.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,8 @@ public static bool FindFragment(List<CodeInstruction> instructions, OpCode[] opC
791791
}
792792

793793
public static string ShortVerisonString(string targetVersion) {
794-
return VersionControl.IsWellFormattedVersionString(targetVersion)
795-
? VersionControl.VersionFromString(targetVersion).ToString(2)
794+
return VersionControl.TryParseVersionString(targetVersion, out Version v)
795+
? v.ToString(2)
796796
: targetVersion;
797797
}
798798
}

0 commit comments

Comments
 (0)