Move Il2CppModel creation out of Il2CppSharpDumper

This commit is contained in:
Katy Coe
2019-10-31 01:25:20 +01:00
parent e26a47fd3a
commit 949c05e548
3 changed files with 14 additions and 6 deletions

View File

@@ -17,9 +17,7 @@ namespace Il2CppInspector
// Namespace prefixes whose contents should be skipped
public List<string> ExcludedNamespaces { get; set; }
public Il2CppCSharpDumper(Il2CppInspector proc) {
model = new Il2CppModel(proc);
}
public Il2CppCSharpDumper(Il2CppModel model) => this.model = model;
private string formatAddress(ulong address) => model.Package.BinaryImage.Bits == 32
? string.Format($"0x{(uint) address:X8}")