29/31.2 don't actually exist, this logic is not needed
This commit is contained in:
@@ -195,25 +195,6 @@ namespace Il2CppInspector
|
|||||||
Header.AttributeDataRangeSize / Sizeof<Il2CppCustomAttributeDataRange>());
|
Header.AttributeDataRangeSize / Sizeof<Il2CppCustomAttributeDataRange>());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Version is 29 or 31)
|
|
||||||
{
|
|
||||||
// 29.2/31.2 added a new isUnmanagedCallersOnly flag to Il2CppMethodDefinition.
|
|
||||||
// This offsets all subsequent entries by one - we can detect this by checking the
|
|
||||||
// top token byte (which should always be 0x06).
|
|
||||||
|
|
||||||
if (Methods.Length >= 2)
|
|
||||||
{
|
|
||||||
var secondToken = Methods[1].token;
|
|
||||||
if (secondToken >> 24 != 0x6)
|
|
||||||
{
|
|
||||||
Version += 0.2;
|
|
||||||
|
|
||||||
Methods = ReadArray<Il2CppMethodDefinition>(Header.methodsOffset,
|
|
||||||
Header.methodsCount / Sizeof(typeof(Il2CppMethodDefinition)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get all metadata strings
|
// Get all metadata strings
|
||||||
var pluginGetStringsResult = PluginHooks.GetStrings(this);
|
var pluginGetStringsResult = PluginHooks.GetStrings(this);
|
||||||
if (pluginGetStringsResult.IsDataModified && !pluginGetStringsResult.IsInvalid)
|
if (pluginGetStringsResult.IsDataModified && !pluginGetStringsResult.IsInvalid)
|
||||||
|
|||||||
Reference in New Issue
Block a user