Skip to content

Commit 5c28af8

Browse files
committed
Update libhac and extract
1 parent 9f0060b commit 5c28af8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

XbTool/XbTool/Tasks.cs

+3
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ private static void SdPrintTest(Options options)
449449
IFileSystem fs = new Xb2FileSystem(options.Input);
450450
File.WriteAllLines(options.Output,
451451
fs.EnumerateEntries().Where(x => x.Type == DirectoryEntryType.File).Select(x => x.FullPath));
452+
453+
var localFs = new LocalFileSystem("output");
454+
fs.CopyFileSystem(localFs, options.Progress);
452455
}
453456
}
454457
}

XbTool/XbTool/Xb2/ArchiveFileSystem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public IFile OpenFile(string path, OpenMode mode)
118118
{
119119
case 2:
120120
var decompData = new byte[fileInfo.UncompressedSize];
121-
Stream compStream = DataFile.Slice(fileInfo.Offset + 0x30).AsStream();
121+
Stream compStream = DataFile.Slice(fileInfo.Offset + 0x30, fileInfo.CompressedSize).AsStream();
122122

123123
using (var deflate = new ZlibStream(compStream, CompressionMode.Decompress, true))
124124
{

XbTool/XbTool/XbTool.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ItemGroup>
1919
<PackageReference Include="CsvHelper" Version="7.0.1" />
2020
<PackageReference Include="DotNet.Glob" Version="2.0.3" />
21-
<PackageReference Include="LibHac" Version="0.3.1-alpha.5" />
21+
<PackageReference Include="LibHac" Version="0.3.1-alpha.6" />
2222
<PackageReference Include="Npgsql" Version="4.0.3" />
2323
<PackageReference Condition=" '$(TargetFramework)' == 'net46' " Include="System.ValueTuple" Version="4.5.0" />
2424
<PackageReference Condition=" '$(TargetFramework)' == 'net46' " Include="DotNetZip" Version="1.11.0" />

0 commit comments

Comments
 (0)