[SabreTools.Helper] Update packages, add AlphaFS

This commit is contained in:
Matt Nadareski
2016-10-26 21:38:45 -07:00
parent 53ca557e16
commit effbdfd22d
37 changed files with 107700 additions and 13 deletions

View File

@@ -57,8 +57,8 @@
<HintPath>..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\Mono.Data.Sqlite.dll</HintPath> <HintPath>..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\Mono.Data.Sqlite.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="SharpCompress, Version=0.12.4.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="SharpCompress, Version=0.14.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SharpCompress.0.12.4\lib\net45\SharpCompress.dll</HintPath> <HintPath>..\packages\SharpCompress.0.14.0\lib\net45\SharpCompress.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />

View File

@@ -9,11 +9,12 @@ using SabreTools.Helper.Dats;
using Ionic.Zlib; using Ionic.Zlib;
using ROMVault2.SupportedFiles.Zip; using ROMVault2.SupportedFiles.Zip;
using SharpCompress.Archive; using SharpCompress.Archives;
using SharpCompress.Archive.SevenZip; using SharpCompress.Archives.SevenZip;
using SharpCompress.Archive.Tar; using SharpCompress.Archives.Tar;
using SharpCompress.Common; using SharpCompress.Common;
using SharpCompress.Reader; using SharpCompress.Readers;
using SharpCompress.Writers;
namespace SabreTools.Helper.Tools namespace SabreTools.Helper.Tools
{ {
@@ -79,7 +80,7 @@ namespace SabreTools.Helper.Tools
SevenZipArchive sza = SevenZipArchive.Open(File.OpenRead(input)); SevenZipArchive sza = SevenZipArchive.Open(File.OpenRead(input));
foreach (IArchiveEntry iae in sza.Entries) foreach (IArchiveEntry iae in sza.Entries)
{ {
iae.WriteToDirectory(tempDir, ExtractOptions.PreserveFileTime | ExtractOptions.ExtractFullPath | ExtractOptions.Overwrite); iae.WriteToDirectory(tempDir, new ExtractionOptions{ PreserveFileTime = true, ExtractFullPath = true, Overwrite = true });
} }
encounteredErrors = false; encounteredErrors = false;
sza.Dispose(); sza.Dispose();
@@ -169,7 +170,7 @@ namespace SabreTools.Helper.Tools
bool succeeded = reader.MoveToNextEntry(); bool succeeded = reader.MoveToNextEntry();
while (succeeded) while (succeeded)
{ {
reader.WriteEntryToDirectory(tempDir, ExtractOptions.PreserveFileTime | ExtractOptions.ExtractFullPath | ExtractOptions.Overwrite); reader.WriteEntryToDirectory(tempDir, new ExtractionOptions { PreserveFileTime = true, ExtractFullPath = true, Overwrite = true });
succeeded = reader.MoveToNextEntry(); succeeded = reader.MoveToNextEntry();
} }
encounteredErrors = false; encounteredErrors = false;
@@ -823,7 +824,7 @@ namespace SabreTools.Helper.Tools
tarchive.AddEntry(key, inputFiles[index]); tarchive.AddEntry(key, inputFiles[index]);
} }
tarchive.SaveTo(tarstream, new CompressionInfo { Type = CompressionType.None }); tarchive.SaveTo(tarstream, new WriterOptions(CompressionType.None));
success = true; success = true;
} }
catch (Exception ex) catch (Exception ex)

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="AlphaFS" version="2.1.0" targetFramework="net452" />
<package id="Mono.Data.Sqlite.Portable" version="1.0.3.5" targetFramework="net452" /> <package id="Mono.Data.Sqlite.Portable" version="1.0.3.5" targetFramework="net452" />
<package id="SharpCompress" version="0.12.4" targetFramework="net452" /> <package id="SharpCompress" version="0.14.0" targetFramework="net452" />
</packages> </packages>

View File

@@ -74,8 +74,8 @@
<HintPath>..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\Mono.Data.Sqlite.dll</HintPath> <HintPath>..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\Mono.Data.Sqlite.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="SharpCompress, Version=0.12.4.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="SharpCompress, Version=0.14.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SharpCompress.0.12.4\lib\net45\SharpCompress.dll</HintPath> <HintPath>..\packages\SharpCompress.0.14.0\lib\net45\SharpCompress.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="Mono.Data.Sqlite.Portable" version="1.0.3.5" targetFramework="net452" /> <package id="Mono.Data.Sqlite.Portable" version="1.0.3.5" targetFramework="net452" />
<package id="SharpCompress" version="0.12.4" targetFramework="net452" /> <package id="SharpCompress" version="0.14.0" targetFramework="net452" />
</packages> </packages>

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.