Rename Il2CppDumper to Il2CppCSharpDumper
This commit is contained in:
@@ -4,21 +4,20 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Il2CppInspector.Reflection;
|
using Il2CppInspector.Reflection;
|
||||||
using ParameterInfo = Il2CppInspector.Reflection.ParameterInfo;
|
using ParameterInfo = Il2CppInspector.Reflection.ParameterInfo;
|
||||||
|
|
||||||
namespace Il2CppInspector
|
namespace Il2CppInspector
|
||||||
{
|
{
|
||||||
public class Il2CppDumper
|
public class Il2CppCSharpDumper
|
||||||
{
|
{
|
||||||
private readonly Il2CppReflector model;
|
private readonly Il2CppReflector model;
|
||||||
|
|
||||||
// Namespace prefixes whose contents should be skipped
|
// Namespace prefixes whose contents should be skipped
|
||||||
public List<string> ExcludedNamespaces { get; set; }
|
public List<string> ExcludedNamespaces { get; set; }
|
||||||
|
|
||||||
public Il2CppDumper(Il2CppInspector proc) {
|
public Il2CppCSharpDumper(Il2CppInspector proc) {
|
||||||
model = new Il2CppReflector(proc);
|
model = new Il2CppReflector(proc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ namespace Il2CppInspector
|
|||||||
// Write output file
|
// Write output file
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (var il2cpp in il2cppInspectors)
|
foreach (var il2cpp in il2cppInspectors)
|
||||||
new Il2CppDumper(il2cpp) {ExcludedNamespaces = excludedNamespaces}.WriteFile(outFile + (i++ > 0 ? "-" + (i-1) : ""));
|
new Il2CppCSharpDumper(il2cpp) {ExcludedNamespaces = excludedNamespaces}.WriteFile(outFile + (i++ > 0 ? "-" + (i-1) : ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace Il2CppInspector
|
|||||||
// Dump each image in the binary separately
|
// Dump each image in the binary separately
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (var il2cpp in inspectors)
|
foreach (var il2cpp in inspectors)
|
||||||
new Il2CppDumper(il2cpp) {ExcludedNamespaces = excludedNamespaces}.WriteFile(testPath + @"\test-result" + (i++ > 0 ? "-" + (i - 1) : "") + ".cs");
|
new Il2CppCSharpDumper(il2cpp) {ExcludedNamespaces = excludedNamespaces}.WriteFile(testPath + @"\test-result" + (i++ > 0 ? "-" + (i - 1) : "") + ".cs");
|
||||||
|
|
||||||
// Compare test result with expected result
|
// Compare test result with expected result
|
||||||
for (i = 0; i < inspectors.Count; i++) {
|
for (i = 0; i < inspectors.Count; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user