AppModel: Build model by default in constructor

This commit is contained in:
Katy Coe
2020-08-15 02:34:19 +02:00
parent 7027f2e1cb
commit 95d88e60d7
5 changed files with 9 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ namespace Il2CppInspector.Model
}
// Initialize
public AppModel(TypeModel model) {
public AppModel(TypeModel model, bool makeDefaultBuild = true) {
// Save .NET type model
TypeModel = model;
@@ -106,6 +106,10 @@ namespace Il2CppInspector.Model
// Get all symbols
Symbols = Image.GetSymbolTable();
// Build if requested
if (makeDefaultBuild)
Build();
}
// Build the application model targeting a specific version of Unity and C++ compiler