diff --git a/Cpp2IL.Core.Tests/Cpp2IlApiTests.cs b/Cpp2IL.Core.Tests/Cpp2IlApiTests.cs
index b0d47e0b..8aaf8799 100644
--- a/Cpp2IL.Core.Tests/Cpp2IlApiTests.cs
+++ b/Cpp2IL.Core.Tests/Cpp2IlApiTests.cs
@@ -7,6 +7,6 @@ public class Cpp2IlApiTests
public void UnityVersionIsCorrectlyDeterminedFromGlobalGameManagers()
{
var version = Cpp2IlApi.DetermineUnityVersion(null, Paths.SimpleGame.DataDirectory);
- Assert.That(version.IsEqual(2019, 4, 34));
+ Assert.That(version.Equals(2019, 4, 34));
}
}
diff --git a/LibCpp2IL/LibCpp2IL.csproj b/LibCpp2IL/LibCpp2IL.csproj
index 7365d8cc..f8612135 100644
--- a/LibCpp2IL/LibCpp2IL.csproj
+++ b/LibCpp2IL/LibCpp2IL.csproj
@@ -25,7 +25,7 @@
-
+
diff --git a/LibCpp2IL/Metadata/Il2CppMetadata.cs b/LibCpp2IL/Metadata/Il2CppMetadata.cs
index 0cbda72f..ee384ec9 100644
--- a/LibCpp2IL/Metadata/Il2CppMetadata.cs
+++ b/LibCpp2IL/Metadata/Il2CppMetadata.cs
@@ -76,37 +76,37 @@ public class Il2CppMetadata : ClassReadingBinaryReader
float actualVersion;
if (version == 27)
{
- if (unityVersion.IsGreaterEqual(2021, 1))
+ if (unityVersion.GreaterThanOrEquals(2021, 1))
actualVersion = 27.2f; //2021.1 and up is v27.2, which just changes Il2CppType to have one new bit
- else if (unityVersion.IsGreaterEqual(2020, 2, 4))
+ else if (unityVersion.GreaterThanOrEquals(2020, 2, 4))
actualVersion = 27.1f; //2020.2.4 and above is v27.1
else
actualVersion = version; //2020.2 and above is v27
}
else if (version == 24)
{
- if (unityVersion.IsGreaterEqual(2020, 1, 11))
+ if (unityVersion.GreaterThanOrEquals(2020, 1, 11))
actualVersion = 24.4f; //2020.1.11-17 were released prior to 2019.4.21, so are still on 24.4
- else if (unityVersion.IsGreaterEqual(2020))
+ else if (unityVersion.GreaterThanOrEquals(2020))
actualVersion = 24.3f; //2020.1.0-10 were released prior to to 2019.4.15, so are still on 24.3
- else if (unityVersion.IsGreaterEqual(2019, 4, 21))
+ else if (unityVersion.GreaterThanOrEquals(2019, 4, 21))
actualVersion = 24.5f; //2019.4.21 introduces v24.5
- else if (unityVersion.IsGreaterEqual(2019, 4, 15))
+ else if (unityVersion.GreaterThanOrEquals(2019, 4, 15))
actualVersion = 24.4f; //2019.4.15 introduces v24.4
- else if (unityVersion.IsGreaterEqual(2019, 3, 7))
+ else if (unityVersion.GreaterThanOrEquals(2019, 3, 7))
actualVersion = 24.3f; //2019.3.7 introduces v24.3
- else if (unityVersion.IsGreaterEqual(2019))
+ else if (unityVersion.GreaterThanOrEquals(2019))
actualVersion = 24.2f; //2019.1.0 introduces v24.2
- else if (unityVersion.IsGreaterEqual(2018, 4, 34))
+ else if (unityVersion.GreaterThanOrEquals(2018, 4, 34))
actualVersion = 24.15f; //2018.4.34 made a tiny little change which just removes HashValueIndex from AssemblyNameDefinition
- else if (unityVersion.IsGreaterEqual(2018, 3))
+ else if (unityVersion.GreaterThanOrEquals(2018, 3))
actualVersion = 24.1f; //2018.3.0 introduces v24.1
else
actualVersion = version; //2017.1.0 was the first v24 version
}
else if (version == 29)
{
- if (unityVersion.IsGreaterEqual(2022, 1, 0, UnityVersionType.Beta, 7))
+ if (unityVersion.GreaterThanOrEquals(2022, 1, 0, UnityVersionType.Beta, 7))
actualVersion = 29.1f; //2022.1.0b7 introduces v29.1 which adds two new pointers to codereg
else
actualVersion = 29; //2021.3.0 introduces v29