Skip to content

Commit

Permalink
use LTRData discutils fork, remove windows only check
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ committed Mar 8, 2024
1 parent 3ae6a77 commit 7efa079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions XvdTool.Streaming/StreamedXvdFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class StreamedXvdFile : IDisposable
private string[] _segmentPaths;

private bool _hasPartitionFiles;
private (string Path, ulong Size)[] _partitionFileEntries;
private (string Path, ulong Size)[] _partitionFileEntries = [];

// XVD header extracted infos
private bool _isXvc;
Expand Down Expand Up @@ -107,7 +107,7 @@ public void Parse()
ParseXvcInfo();
}

if (!_hasSegmentMetadata && _header.Type == XvdType.Fixed && OperatingSystem.IsWindows())
if (!_hasSegmentMetadata && _header.Type == XvdType.Fixed)
{
ParseNtfsPartition();
}
Expand Down Expand Up @@ -240,12 +240,6 @@ private void ParseXvcInfo()

private void ParseNtfsPartition()
{
if (!OperatingSystem.IsWindows())
{
ConsoleLogger.WriteInfoLine("Skipping GPT/MBR partition parsing due to not running on Windows.");
return;
}

var driveSize = checked((long)_header.DriveSize);

using var fsStream =
Expand Down
2 changes: 1 addition & 1 deletion XvdTool.Streaming/XvdTool.Streaming.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DiscUtils.Ntfs" Version="0.16.13" />
<PackageReference Include="DotNext.Unsafe" Version="4.13.1" />
<PackageReference Include="LTRData.DiscUtils.Ntfs" Version="1.0.40" />
<PackageReference Include="Spectre.Console.Cli" Version="0.47.1-preview.0.11" />
</ItemGroup>

Expand Down

0 comments on commit 7efa079

Please sign in to comment.