From 67d51ad1d65dcd40358f4ffc35cf011aff51522a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 28 Aug 2025 22:42:15 -0400 Subject: [PATCH] Handle RAR SFX by extracting the archive portion --- SabreTools.Serialization/Wrappers/PortableExecutable.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SabreTools.Serialization/Wrappers/PortableExecutable.cs b/SabreTools.Serialization/Wrappers/PortableExecutable.cs index 1659e709..4d4cbc6f 100644 --- a/SabreTools.Serialization/Wrappers/PortableExecutable.cs +++ b/SabreTools.Serialization/Wrappers/PortableExecutable.cs @@ -1099,11 +1099,7 @@ namespace SabreTools.Serialization.Wrappers var pkzipSfx = new PKZIP(_dataSource); bool pkzip = pkzipSfx?.Extract(outputDirectory, lookForHeader: true, includeDebug) ?? false; - _dataSource.Position = 0; - var rarSfx = new RAR(_dataSource); - bool rar = rarSfx?.Extract(outputDirectory, lookForHeader: true, includeDebug) ?? false; - - return cexe || overlay || resources || pkzip || rar; + return cexe || overlay || resources || pkzip; } ///