From 0cf2b0f6d2ab944dac5cb0b0ecfed9f7b283bfe8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 19 Jul 2018 10:12:38 -0700 Subject: [PATCH] Better cabinet handling, update version --- BurnOutSharp/BurnOutSharp.csproj | 4 +-- BurnOutSharp/BurnOutSharp.nuspec | 4 +-- BurnOutSharp/Properties/AssemblyInfo.cs | 4 +-- BurnOutSharp/ProtectionFind.cs | 36 ++++++++++++++----------- BurnOutSharp/packages.config | 2 +- 5 files changed, 27 insertions(+), 23 deletions(-) diff --git a/BurnOutSharp/BurnOutSharp.csproj b/BurnOutSharp/BurnOutSharp.csproj index dfd4dad2..6ed2d397 100644 --- a/BurnOutSharp/BurnOutSharp.csproj +++ b/BurnOutSharp/BurnOutSharp.csproj @@ -44,8 +44,8 @@ - - ..\packages\UnshieldSharp.1.4.2.1\lib\net461\UnshieldSharp.dll + + ..\packages\UnshieldSharp.1.4.2.2\lib\net461\UnshieldSharp.dll ..\packages\zlib.net.1.0.4.0\lib\zlib.net.dll diff --git a/BurnOutSharp/BurnOutSharp.nuspec b/BurnOutSharp/BurnOutSharp.nuspec index 244869ae..3efb71c8 100644 --- a/BurnOutSharp/BurnOutSharp.nuspec +++ b/BurnOutSharp/BurnOutSharp.nuspec @@ -2,7 +2,7 @@ BurnOutSharp - 1.03.7 + 1.03.7.1 BurnOutSharp Matt Nadareski, Gernot Knippen Matt Nadareski, Gernot Knippen @@ -15,7 +15,7 @@ - + diff --git a/BurnOutSharp/Properties/AssemblyInfo.cs b/BurnOutSharp/Properties/AssemblyInfo.cs index 88d39da4..bff24e22 100644 --- a/BurnOutSharp/Properties/AssemblyInfo.cs +++ b/BurnOutSharp/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.03.7")] -[assembly: AssemblyFileVersion("1.03.7.0")] +[assembly: AssemblyVersion("1.03.7.1")] +[assembly: AssemblyFileVersion("1.03.7.1")] diff --git a/BurnOutSharp/ProtectionFind.cs b/BurnOutSharp/ProtectionFind.cs index 5fa02e7e..2a310883 100644 --- a/BurnOutSharp/ProtectionFind.cs +++ b/BurnOutSharp/ProtectionFind.cs @@ -462,6 +462,7 @@ private static string ScanInFile(string file) { try { + List protections = new List(); string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); Directory.CreateDirectory(tempPath); @@ -479,16 +480,17 @@ private static string ScanInFile(string file) catch { } if (!String.IsNullOrEmpty(protection)) - { - try - { - Directory.Delete(tempPath, true); - } - catch { } - return protection; - } + protections.Add(protection); } } + + try + { + Directory.Delete(tempPath, true); + } + catch { } + + return string.Join(", ", protections); } catch { } } @@ -498,6 +500,7 @@ private static string ScanInFile(string file) { try { + List protections = new List(); string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); Directory.CreateDirectory(tempPath); @@ -510,15 +513,16 @@ private static string ScanInFile(string file) File.Delete(tempfile); if (!String.IsNullOrEmpty(protection)) - { - try - { - Directory.Delete(tempPath, true); - } - catch { } - return protection; - } + protections.Add(protection); + } + + try + { + Directory.Delete(tempPath, true); } + catch { } + + return string.Join(", ", protections); } catch { } } diff --git a/BurnOutSharp/packages.config b/BurnOutSharp/packages.config index 45c6842a..3da4fadb 100644 --- a/BurnOutSharp/packages.config +++ b/BurnOutSharp/packages.config @@ -2,6 +2,6 @@ - + \ No newline at end of file