mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-25 02:03:02 -03:00
细节调整
This commit is contained in:
parent
5360ffdba3
commit
7b477da7b2
2 changed files with 4 additions and 4 deletions
|
@ -308,7 +308,7 @@ namespace Il2CppDumper
|
|||
return new PointerType(GetTypeReference(memberReference, type));
|
||||
}
|
||||
default:
|
||||
throw new Exception("NOT_IMPLEMENTED");
|
||||
return moduleDefinition.Import(typeof(Object));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ namespace Il2CppDumper
|
|||
if (methodDef.methodIndex >= 0)
|
||||
{
|
||||
writer.Write("); // 0x{0:X}\n", il2cpp.methodPointers[methodDef.methodIndex]);
|
||||
//Script
|
||||
//Script - method
|
||||
var name = ToEscapedString(metadata.GetString(typeDef.nameIndex) + "$$" + metadata.GetString(methodDef.nameIndex));
|
||||
scriptwriter.WriteLine($"SetMethod(0x{il2cpp.methodPointers[methodDef.methodIndex]:X}, '{name}')");
|
||||
//
|
||||
|
@ -402,7 +402,7 @@ namespace Il2CppDumper
|
|||
writer.Write("*/\n}\n");
|
||||
}
|
||||
}
|
||||
//Script
|
||||
//Script - stringLiteral
|
||||
if (il2cpp.version > 16)
|
||||
{
|
||||
foreach (var i in metadata.stringLiteralsdic)
|
||||
|
@ -410,7 +410,7 @@ namespace Il2CppDumper
|
|||
scriptwriter.WriteLine($"SetString(0x{il2cpp.metadataUsages[i.Key]:X}, r'{ToEscapedString(i.Value)}')");
|
||||
}
|
||||
}
|
||||
//--MakeFunction
|
||||
//Script - MakeFunction
|
||||
var orderedPointers = il2cpp.methodPointers.ToList();
|
||||
orderedPointers.AddRange(il2cpp.genericMethodPointers.Where(x => x > 0));
|
||||
orderedPointers.AddRange(il2cpp.invokerPointers);
|
||||
|
|
Loading…
Add table
Reference in a new issue