mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-25 02:03:02 -03:00
修复2018.4.x下可能出现的错误
This commit is contained in:
parent
ed2d6029f9
commit
05ee90a4e9
1 changed files with 13 additions and 0 deletions
|
@ -76,7 +76,20 @@ namespace Il2CppDumper
|
||||||
{
|
{
|
||||||
Version = 24.4;
|
Version = 24.4;
|
||||||
}
|
}
|
||||||
|
var v241Plus = false;
|
||||||
|
if (Version == 24.1 && header.assembliesSize / 64 == imageDefs.Length)
|
||||||
|
{
|
||||||
|
v241Plus = true;
|
||||||
|
}
|
||||||
|
if (v241Plus)
|
||||||
|
{
|
||||||
|
Version = 24.4;
|
||||||
|
}
|
||||||
assemblyDefs = ReadMetadataClassArray<Il2CppAssemblyDefinition>(header.assembliesOffset, header.assembliesSize);
|
assemblyDefs = ReadMetadataClassArray<Il2CppAssemblyDefinition>(header.assembliesOffset, header.assembliesSize);
|
||||||
|
if (v241Plus)
|
||||||
|
{
|
||||||
|
Version = 24.1;
|
||||||
|
}
|
||||||
typeDefs = ReadMetadataClassArray<Il2CppTypeDefinition>(header.typeDefinitionsOffset, header.typeDefinitionsSize);
|
typeDefs = ReadMetadataClassArray<Il2CppTypeDefinition>(header.typeDefinitionsOffset, header.typeDefinitionsSize);
|
||||||
methodDefs = ReadMetadataClassArray<Il2CppMethodDefinition>(header.methodsOffset, header.methodsSize);
|
methodDefs = ReadMetadataClassArray<Il2CppMethodDefinition>(header.methodsOffset, header.methodsSize);
|
||||||
parameterDefs = ReadMetadataClassArray<Il2CppParameterDefinition>(header.parametersOffset, header.parametersSize);
|
parameterDefs = ReadMetadataClassArray<Il2CppParameterDefinition>(header.parametersOffset, header.parametersSize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue