From 7b477da7b208cecff1f7dd55e0d31419da8c4085 Mon Sep 17 00:00:00 2001 From: Perfare Date: Sat, 6 Jan 2018 08:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Il2CppDumper/DummyAssemblyCreator.cs | 2 +- Il2CppDumper/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Il2CppDumper/DummyAssemblyCreator.cs b/Il2CppDumper/DummyAssemblyCreator.cs index 572e95a..f98a247 100644 --- a/Il2CppDumper/DummyAssemblyCreator.cs +++ b/Il2CppDumper/DummyAssemblyCreator.cs @@ -308,7 +308,7 @@ namespace Il2CppDumper return new PointerType(GetTypeReference(memberReference, type)); } default: - throw new Exception("NOT_IMPLEMENTED"); + return moduleDefinition.Import(typeof(Object)); } } diff --git a/Il2CppDumper/Program.cs b/Il2CppDumper/Program.cs index c295696..ac51d81 100644 --- a/Il2CppDumper/Program.cs +++ b/Il2CppDumper/Program.cs @@ -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);