[AaruFormat] Change how partitions are created.

Possibly not the best way for discs with pregaps, will need more testing.
This commit is contained in:
2025-10-19 13:45:19 +01:00
parent fd769cb514
commit 288cbbae56

View File

@@ -83,9 +83,9 @@ public sealed partial class AaruFormat
Type = track.Type.Humanize(),
Name = string.Format(Localization.Track_0, track.Sequence),
Offset = currentTrackOffset,
Start = (ulong)track.Indexes[1],
Size = (track.EndSector - (ulong)track.Indexes[1] + 1) * (ulong)track.BytesPerSector,
Length = track.EndSector - (ulong)track.Indexes[1] + 1,
Start = track.StartSector,
Size = (track.EndSector - track.StartSector + 1) * (ulong)track.BytesPerSector,
Length = track.EndSector - track.StartSector + 1,
Scheme = Localization.Optical_disc_track
});