Skip to content

Commit 7efa079

Browse files
committed
use LTRData discutils fork, remove windows only check
1 parent 3ae6a77 commit 7efa079

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

XvdTool.Streaming/StreamedXvdFile.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial class StreamedXvdFile : IDisposable
3838
private string[] _segmentPaths;
3939

4040
private bool _hasPartitionFiles;
41-
private (string Path, ulong Size)[] _partitionFileEntries;
41+
private (string Path, ulong Size)[] _partitionFileEntries = [];
4242

4343
// XVD header extracted infos
4444
private bool _isXvc;
@@ -107,7 +107,7 @@ public void Parse()
107107
ParseXvcInfo();
108108
}
109109

110-
if (!_hasSegmentMetadata && _header.Type == XvdType.Fixed && OperatingSystem.IsWindows())
110+
if (!_hasSegmentMetadata && _header.Type == XvdType.Fixed)
111111
{
112112
ParseNtfsPartition();
113113
}
@@ -240,12 +240,6 @@ private void ParseXvcInfo()
240240

241241
private void ParseNtfsPartition()
242242
{
243-
if (!OperatingSystem.IsWindows())
244-
{
245-
ConsoleLogger.WriteInfoLine("Skipping GPT/MBR partition parsing due to not running on Windows.");
246-
return;
247-
}
248-
249243
var driveSize = checked((long)_header.DriveSize);
250244

251245
using var fsStream =

XvdTool.Streaming/XvdTool.Streaming.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="DiscUtils.Ntfs" Version="0.16.13" />
1312
<PackageReference Include="DotNext.Unsafe" Version="4.13.1" />
13+
<PackageReference Include="LTRData.DiscUtils.Ntfs" Version="1.0.40" />
1414
<PackageReference Include="Spectre.Console.Cli" Version="0.47.1-preview.0.11" />
1515
</ItemGroup>
1616

0 commit comments

Comments
 (0)