Rename AppModel.ILModel to AppModel.TypeModel

This commit is contained in:
Katy Coe
2020-08-14 02:18:53 +02:00
parent 0f3b31749b
commit ca55125858
5 changed files with 21 additions and 21 deletions

View File

@@ -195,7 +195,7 @@ namespace Il2CppInspectorGUI
var model = (AppModel)((ListBox)sender).SelectedItem;
// Get namespaces
var namespaces = model.ILModel.Assemblies.SelectMany(x => x.DefinedTypes).GroupBy(t => t.Namespace).Select(n => n.Key);
var namespaces = model.TypeModel.Assemblies.SelectMany(x => x.DefinedTypes).GroupBy(t => t.Namespace).Select(n => n.Key);
// Break namespaces down into a tree
var namespaceTree = deconstructNamespaces(namespaces);
@@ -347,7 +347,7 @@ namespace Il2CppInspectorGUI
// Get options
var excludedNamespaces = constructExcludedNamespaces((IEnumerable<CheckboxNode>) trvNamespaces.ItemsSource);
var writer = new CSharpCodeStubs(model.ILModel) {
var writer = new CSharpCodeStubs(model.TypeModel) {
ExcludedNamespaces = excludedNamespaces.ToList(),
SuppressMetadata = cbSuppressMetadata.IsChecked == true,
MustCompile = cbMustCompile.IsChecked == true