From dbee37d4de91e7b09aadd86ff44c3f4146b6c538 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 29 Dec 2020 17:18:31 +0100 Subject: [PATCH] Plugins: Add PostProcessImage --- .../FileFormatStreams/FileFormatStream.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Il2CppInspector.Common/FileFormatStreams/FileFormatStream.cs b/Il2CppInspector.Common/FileFormatStreams/FileFormatStream.cs index 94e69be..c4adf00 100644 --- a/Il2CppInspector.Common/FileFormatStreams/FileFormatStream.cs +++ b/Il2CppInspector.Common/FileFormatStreams/FileFormatStream.cs @@ -209,9 +209,12 @@ namespace Il2CppInspector OnStatusUpdate = statusCallback; Position = 0; - return Init(); - - // TODO: Plugin hook PostProcessFile + if (Init()) { + // Call post-process plugin hook if load succeeded + IsModified |= PluginHooks.PostProcessImage(this).IsStreamModified; + return true; + } + return false; } // Confirm file is valid and set up RVA mappings