Skip to content

Commit 0cf2b0f

Browse files
committed
Better cabinet handling, update version
1 parent a3094ef commit 0cf2b0f

File tree

5 files changed

+27
-23
lines changed

5 files changed

+27
-23
lines changed

BurnOutSharp/BurnOutSharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<Reference Include="System.Data" />
4545
<Reference Include="System.Net.Http" />
4646
<Reference Include="System.Xml" />
47-
<Reference Include="UnshieldSharp, Version=1.4.2.0, Culture=neutral, processorArchitecture=MSIL">
48-
<HintPath>..\packages\UnshieldSharp.1.4.2.1\lib\net461\UnshieldSharp.dll</HintPath>
47+
<Reference Include="UnshieldSharp, Version=1.4.2.2, Culture=neutral, processorArchitecture=MSIL">
48+
<HintPath>..\packages\UnshieldSharp.1.4.2.2\lib\net461\UnshieldSharp.dll</HintPath>
4949
</Reference>
5050
<Reference Include="zlib.net, Version=1.0.3.0, Culture=neutral, PublicKeyToken=47d7877cb3620160">
5151
<HintPath>..\packages\zlib.net.1.0.4.0\lib\zlib.net.dll</HintPath>

BurnOutSharp/BurnOutSharp.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>BurnOutSharp</id>
5-
<version>1.03.7</version>
5+
<version>1.03.7.1</version>
66
<title>BurnOutSharp</title>
77
<authors>Matt Nadareski, Gernot Knippen</authors>
88
<owners>Matt Nadareski, Gernot Knippen</owners>
@@ -15,7 +15,7 @@
1515
<dependencies>
1616
<dependency id="LessIO" version="0.5.0" />
1717
<dependency id="libmspack4n" version="0.8.0" />
18-
<dependency id="UnshieldSharp" version="1.4.2.1" />
18+
<dependency id="UnshieldSharp" version="1.4.2.2" />
1919
</dependencies>
2020
</metadata>
2121
<files>

BurnOutSharp/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.03.7")]
36-
[assembly: AssemblyFileVersion("1.03.7.0")]
35+
[assembly: AssemblyVersion("1.03.7.1")]
36+
[assembly: AssemblyFileVersion("1.03.7.1")]

BurnOutSharp/ProtectionFind.cs

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ private static string ScanInFile(string file)
462462
{
463463
try
464464
{
465+
List<string> protections = new List<string>();
465466
string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
466467
Directory.CreateDirectory(tempPath);
467468

@@ -479,16 +480,17 @@ private static string ScanInFile(string file)
479480
catch { }
480481

481482
if (!String.IsNullOrEmpty(protection))
482-
{
483-
try
484-
{
485-
Directory.Delete(tempPath, true);
486-
}
487-
catch { }
488-
return protection;
489-
}
483+
protections.Add(protection);
490484
}
491485
}
486+
487+
try
488+
{
489+
Directory.Delete(tempPath, true);
490+
}
491+
catch { }
492+
493+
return string.Join(", ", protections);
492494
}
493495
catch { }
494496
}
@@ -498,6 +500,7 @@ private static string ScanInFile(string file)
498500
{
499501
try
500502
{
503+
List<string> protections = new List<string>();
501504
string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
502505
Directory.CreateDirectory(tempPath);
503506

@@ -510,15 +513,16 @@ private static string ScanInFile(string file)
510513
File.Delete(tempfile);
511514

512515
if (!String.IsNullOrEmpty(protection))
513-
{
514-
try
515-
{
516-
Directory.Delete(tempPath, true);
517-
}
518-
catch { }
519-
return protection;
520-
}
516+
protections.Add(protection);
517+
}
518+
519+
try
520+
{
521+
Directory.Delete(tempPath, true);
521522
}
523+
catch { }
524+
525+
return string.Join(", ", protections);
522526
}
523527
catch { }
524528
}

BurnOutSharp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<packages>
33
<package id="LessIO" version="0.5.0" targetFramework="net461" />
44
<package id="libmspack4n" version="0.8.0" targetFramework="net461" />
5-
<package id="UnshieldSharp" version="1.4.2.1" targetFramework="net461" />
5+
<package id="UnshieldSharp" version="1.4.2.2" targetFramework="net461" />
66
<package id="zlib.net" version="1.0.4.0" targetFramework="net461" />
77
</packages>

0 commit comments

Comments
 (0)