Roll up Il2CppInspector.Binary and Il2CppInspector.Metadata

This commit is contained in:
Katy Coe
2019-10-16 17:00:30 +02:00
parent 950c2d6f16
commit 3345d4566a
9 changed files with 43 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2017 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
Copyright 2017-2019 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
All rights reserved.
*/
@@ -34,7 +34,7 @@ namespace Il2CppInspector.Reflection {
// Initialize from specified assembly index in package
public Assembly(Il2CppReflector model, int imageIndex) {
Model = model;
Definition = Model.Package.Metadata.Images[imageIndex];
Definition = Model.Package.Images[imageIndex];
Index = Definition.assemblyIndex;
FullName = Model.Package.Strings[Definition.nameIndex];
@@ -43,8 +43,8 @@ namespace Il2CppInspector.Reflection {
}
// Find corresponding module (we'll need this for method pointers)
if (Model.Package.Metadata.Version >= 24.1)
Module = Model.Package.Binary.Modules[FullName];
if (Model.Package.Version >= 24.1)
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++)