We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0ef09 commit 64a2bb3Copy full SHA for 64a2bb3
Il2CppInspector.Common/Cpp/UnityHeaders/UnityVersion.cs
@@ -176,9 +176,9 @@ public static UnityVersionRange FromFilename(string headerFilename) {
176
var bits = headerFilename.Split("-");
177
178
// Metadata version supplied
179
- // Note: This relies on the metadata version being either 2 or 4 characters,
+ // Note: This relies on the metadata version being 2/3/4 characters,
180
// and that the smallest Unity version must be 5 characters or more
181
- if (headerFilename[2] == '-' || headerFilename[4] == '-')
+ if (headerFilename.Substring(2, 3).Contains('-'))
182
bits = bits.Skip(1).ToArray();
183
184
var Min = new UnityVersion(bits[0]);
0 commit comments