mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 11:17:35 -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;
|
||||
}
|
||||
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);
|
||||
if (v241Plus)
|
||||
{
|
||||
Version = 24.1;
|
||||
}
|
||||
typeDefs = ReadMetadataClassArray<Il2CppTypeDefinition>(header.typeDefinitionsOffset, header.typeDefinitionsSize);
|
||||
methodDefs = ReadMetadataClassArray<Il2CppMethodDefinition>(header.methodsOffset, header.methodsSize);
|
||||
parameterDefs = ReadMetadataClassArray<Il2CppParameterDefinition>(header.parametersOffset, header.parametersSize);
|
||||
|
|
Loading…
Reference in a new issue