From bb130849ee02f4020d10885944429861c4c1266a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 26 Dec 2022 14:52:12 -0800 Subject: [PATCH] Fix build with missed changes --- BurnOutSharp/Scanner.cs | 46 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs index 8e8ad37b..a0d6f7c5 100644 --- a/BurnOutSharp/Scanner.cs +++ b/BurnOutSharp/Scanner.cs @@ -377,6 +377,14 @@ namespace BurnOutSharp AppendToDictionary(protections, subProtections); } + // BSP + if (scannable is BSP) + { + var subProtections = scannable.Scan(this, stream, fileName); + PrependToKeys(subProtections, fileName); + AppendToDictionary(protections, subProtections); + } + // BZip2 if (scannable is BZip2) { @@ -385,6 +393,14 @@ namespace BurnOutSharp AppendToDictionary(protections, subProtections); } + // GCF + if (scannable is GCF) + { + var subProtections = scannable.Scan(this, stream, fileName); + PrependToKeys(subProtections, fileName); + AppendToDictionary(protections, subProtections); + } + // GZIP if (scannable is GZIP) { @@ -425,13 +441,21 @@ namespace BurnOutSharp AppendToDictionary(protections, subProtections); } - // MPQ archive + // MoPaQ archive if (fileName != null && scannable is MPQ) { var subProtections = scannable.Scan(this, fileName); PrependToKeys(subProtections, fileName); AppendToDictionary(protections, subProtections); } + + // PAK + if (fileName != null && scannable is PAK) + { + var subProtections = scannable.Scan(this, fileName); + PrependToKeys(subProtections, fileName); + AppendToDictionary(protections, subProtections); + } // PKZIP archive (and derivatives) if (scannable is PKZIP) @@ -457,8 +481,8 @@ namespace BurnOutSharp AppendToDictionary(protections, subProtections); } - // Valve archive formats - if (fileName != null && scannable is Valve) + // VBSP + if (fileName != null && scannable is VBSP) { var subProtections = scannable.Scan(this, fileName); PrependToKeys(subProtections, fileName); @@ -473,6 +497,14 @@ namespace BurnOutSharp AppendToDictionary(protections, subProtections); } + // WAD + if (scannable is WAD) + { + var subProtections = scannable.Scan(this, stream, fileName); + PrependToKeys(subProtections, fileName); + AppendToDictionary(protections, subProtections); + } + // XZ if (scannable is XZ) { @@ -480,6 +512,14 @@ namespace BurnOutSharp PrependToKeys(subProtections, fileName); AppendToDictionary(protections, subProtections); } + + // XZP + if (scannable is XZP) + { + var subProtections = scannable.Scan(this, stream, fileName); + PrependToKeys(subProtections, fileName); + AppendToDictionary(protections, subProtections); + } } #endregion