IL2CPP: Reconstruct scrambled Il2CppCodeRegistration

This commit is contained in:
Katy Coe
2020-12-05 02:10:41 +01:00
parent f2b2496999
commit 21cb7f9f80
3 changed files with 217 additions and 64 deletions

View File

@@ -208,7 +208,8 @@ namespace Il2CppInspector
CodeRegistration = Image.ReadMappedObject<Il2CppCodeRegistration>(codeRegistration);
MetadataRegistration = Image.ReadMappedObject<Il2CppMetadataRegistration>(metadataRegistration);
Arrange();
// Restore the field order in CodeRegistration and MetadataRegistration if they have been re-ordered for obfuscation
ReconstructMetadata();
// Do basic validatation that MetadataRegistration and CodeRegistration are sane
/*