Prepare for 64-bit support

This commit is contained in:
Katy Coe
2019-10-22 15:27:18 +02:00
parent f78d7f8250
commit e036151f4d
7 changed files with 38 additions and 36 deletions

View File

@@ -59,7 +59,7 @@ namespace Il2CppInspector
}
// Architecture-specific search function
protected abstract (uint, uint) ConsiderCode(uint loc, uint globalOffset);
protected abstract (ulong, ulong) ConsiderCode(uint loc, ulong globalOffset);
// Check all search locations
public bool Initialize(double version, uint imageIndex = 0) {
@@ -111,7 +111,7 @@ namespace Il2CppInspector
return false;
}
private void Configure(IFileFormatReader image, uint codeRegistration, uint metadataRegistration) {
private void Configure(IFileFormatReader image, ulong codeRegistration, ulong metadataRegistration) {
// Root structures from which we find everything else
CodeRegistration = image.ReadMappedObject<Il2CppCodeRegistration>(codeRegistration);
MetadataRegistration = image.ReadMappedObject<Il2CppMetadataRegistration>(metadataRegistration);