IL2CPP: Add IsModified flags to Metadata and Binary

This commit is contained in:
Katy Coe
2020-12-09 17:34:21 +01:00
parent 15663fb0cf
commit 90fa9cf193
3 changed files with 13 additions and 0 deletions

View File

@@ -80,9 +80,13 @@ namespace Il2CppInspector
// One assembly may contain multiple modules
public Dictionary<string, Il2CppCodeGenModule> Modules { get; private set; }
// Status update callback
private EventHandler<string> OnStatusUpdate { get; set; }
private void StatusUpdate(string status) => OnStatusUpdate?.Invoke(this, status);
// Set if something in the binary has been modified / decrypted
public bool IsModified { get; private set; } = false;
protected Il2CppBinary(IFileFormatReader stream, EventHandler<string> statusCallback = null) {
Image = stream;
OnStatusUpdate = statusCallback;