Skip to content

Commit

Permalink
Better cabinet handling, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Jul 19, 2018
1 parent a3094ef commit 0cf2b0f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions BurnOutSharp/BurnOutSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnshieldSharp, Version=1.4.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UnshieldSharp.1.4.2.1\lib\net461\UnshieldSharp.dll</HintPath>
<Reference Include="UnshieldSharp, Version=1.4.2.2, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UnshieldSharp.1.4.2.2\lib\net461\UnshieldSharp.dll</HintPath>
</Reference>
<Reference Include="zlib.net, Version=1.0.3.0, Culture=neutral, PublicKeyToken=47d7877cb3620160">
<HintPath>..\packages\zlib.net.1.0.4.0\lib\zlib.net.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions BurnOutSharp/BurnOutSharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>BurnOutSharp</id>
<version>1.03.7</version>
<version>1.03.7.1</version>
<title>BurnOutSharp</title>
<authors>Matt Nadareski, Gernot Knippen</authors>
<owners>Matt Nadareski, Gernot Knippen</owners>
Expand All @@ -15,7 +15,7 @@
<dependencies>
<dependency id="LessIO" version="0.5.0" />
<dependency id="libmspack4n" version="0.8.0" />
<dependency id="UnshieldSharp" version="1.4.2.1" />
<dependency id="UnshieldSharp" version="1.4.2.2" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions BurnOutSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
36 changes: 20 additions & 16 deletions BurnOutSharp/ProtectionFind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ private static string ScanInFile(string file)
{
try
{
List<string> protections = new List<string>();
string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Directory.CreateDirectory(tempPath);

Expand All @@ -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 { }
}
Expand All @@ -498,6 +500,7 @@ private static string ScanInFile(string file)
{
try
{
List<string> protections = new List<string>();
string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Directory.CreateDirectory(tempPath);

Expand All @@ -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 { }
}
Expand Down
2 changes: 1 addition & 1 deletion BurnOutSharp/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<packages>
<package id="LessIO" version="0.5.0" targetFramework="net461" />
<package id="libmspack4n" version="0.8.0" targetFramework="net461" />
<package id="UnshieldSharp" version="1.4.2.1" targetFramework="net461" />
<package id="UnshieldSharp" version="1.4.2.2" targetFramework="net461" />
<package id="zlib.net" version="1.0.4.0" targetFramework="net461" />
</packages>

0 comments on commit 0cf2b0f

Please sign in to comment.