From 5ff947b279a170fc36f91ad358c835281983128b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 28 Aug 2025 19:59:24 -0400 Subject: [PATCH] Add non-model constructors for PKZIP --- SabreTools.Serialization/Wrappers/PKZIP.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SabreTools.Serialization/Wrappers/PKZIP.cs b/SabreTools.Serialization/Wrappers/PKZIP.cs index fcc50988..8d5c2c1e 100644 --- a/SabreTools.Serialization/Wrappers/PKZIP.cs +++ b/SabreTools.Serialization/Wrappers/PKZIP.cs @@ -43,6 +43,22 @@ namespace SabreTools.Serialization.Wrappers #region Constructors + /// + /// This should only be used for WinZipSFX + public PKZIP(byte[]? data, int offset) + : base(new Archive(), data, offset) + { + // All logic is handled by the base class + } + + /// + /// This should only be used for WinZipSFX + public PKZIP(Stream? data) + : base(new Archive(), data) + { + // All logic is handled by the base class + } + /// public PKZIP(Archive? model, byte[]? data, int offset) : base(model, data, offset)