Upgrade UnshieldSharp, re-enable ISCab for Core

This commit is contained in:
Matt Nadareski
2020-11-01 23:13:35 -08:00
parent 28d6d06033
commit 828d3403f1
2 changed files with 1 additions and 7 deletions

View File

@@ -30,7 +30,7 @@
<PackageReference Include="LessIO" Version="1.0.34" Condition="'$(TargetFramework)'!='netcoreapp3.1'" />
<PackageReference Include="libmspack4n" Version="0.9.10" Condition="'$(TargetFramework)'!='netcoreapp3.1'" />
<PackageReference Include="SharpCompress" Version="0.26.0" />
<PackageReference Include="UnshieldSharp" Version="1.4.2.3" Condition="'$(TargetFramework)'!='netcoreapp3.1'" />
<PackageReference Include="UnshieldSharp" Version="1.4.2.4" />
<PackageReference Include="WiseUnpacker" Version="1.0.1" />
<PackageReference Include="wix-libs" Version="3.11.1" Condition="'$(TargetFramework)'!='netcoreapp3.1'" />
</ItemGroup>

View File

@@ -2,9 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
#if NET_FRAMEWORK
using UnshieldSharp;
#endif
namespace BurnOutSharp.FileType
{
@@ -12,10 +10,8 @@ namespace BurnOutSharp.FileType
{
public static bool ShouldScan(byte[] magic)
{
#if NET_FRAMEWORK
if (magic.StartsWith(new byte[] { 0x49, 0x53, 0x63 }))
return true;
#endif
return false;
}
@@ -23,7 +19,6 @@ namespace BurnOutSharp.FileType
// TODO: Add stream opening support
public static Dictionary<string, List<string>> Scan(Scanner scanner, string file)
{
#if NET_FRAMEWORK
// Get the name of the first cabinet file or header
string directory = Path.GetDirectoryName(file);
string noExtension = Path.GetFileNameWithoutExtension(file);
@@ -73,7 +68,6 @@ namespace BurnOutSharp.FileType
}
catch { }
}
#endif
return null;
}