Move method pointer logic from Model to Inspector

This commit is contained in:
Katy Coe
2019-10-29 20:53:22 +01:00
parent 47c81625ca
commit f7eb9395a5
3 changed files with 32 additions and 28 deletions

View File

@@ -43,8 +43,7 @@ namespace Il2CppInspector.Reflection {
}
// Find corresponding module (we'll need this for method pointers)
if (Model.Package.Version >= 24.2)
Module = Model.Package.Modules[FullName];
Module = Model.Package.Modules?[FullName];
// Generate types in DefinedTypes from typeStart to typeStart+typeCount-1
for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) {