mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[AaruFormat] Enable negative and overflow sectors.
This commit is contained in:
@@ -29,9 +29,9 @@ public sealed partial class AaruFormat
|
|||||||
OpticalImageCapabilities.CanStoreNotCdSessions |
|
OpticalImageCapabilities.CanStoreNotCdSessions |
|
||||||
OpticalImageCapabilities.CanStoreNotCdTracks |
|
OpticalImageCapabilities.CanStoreNotCdTracks |
|
||||||
OpticalImageCapabilities.CanStoreIndexes |
|
OpticalImageCapabilities.CanStoreIndexes |
|
||||||
OpticalImageCapabilities.CanStoreHiddenTracks /* |
|
OpticalImageCapabilities.CanStoreHiddenTracks |
|
||||||
OpticalImageCapabilities.CanStoreNegativeSectors |
|
OpticalImageCapabilities.CanStoreNegativeSectors |
|
||||||
OpticalImageCapabilities.CanStoreOverflowSectors*/;
|
OpticalImageCapabilities.CanStoreOverflowSectors;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
||||||
|
|||||||
@@ -209,8 +209,8 @@ public sealed partial class AaruFormat
|
|||||||
mediaType,
|
mediaType,
|
||||||
sectorSize,
|
sectorSize,
|
||||||
sectors,
|
sectors,
|
||||||
0,
|
negativeSectors,
|
||||||
0,
|
overflowSectors,
|
||||||
optionsString,
|
optionsString,
|
||||||
applicationName,
|
applicationName,
|
||||||
(byte)applicationName.Length,
|
(byte)applicationName.Length,
|
||||||
@@ -288,9 +288,8 @@ public sealed partial class AaruFormat
|
|||||||
|
|
||||||
// Convert array of booleans to List of enums
|
// Convert array of booleans to List of enums
|
||||||
for(nuint i = 0; i < sizet_length; i++)
|
for(nuint i = 0; i < sizet_length; i++)
|
||||||
{
|
if(sectorTagsBuffer[i] != 0)
|
||||||
if(sectorTagsBuffer[i] != 0) _imageInfo.ReadableSectorTags.Add((SectorTagType)i);
|
_imageInfo.ReadableSectorTags.Add((SectorTagType)i);
|
||||||
}
|
|
||||||
|
|
||||||
sizet_length = 0;
|
sizet_length = 0;
|
||||||
ret = aaruf_get_readable_media_tags(_context, null, ref sizet_length);
|
ret = aaruf_get_readable_media_tags(_context, null, ref sizet_length);
|
||||||
@@ -314,9 +313,8 @@ public sealed partial class AaruFormat
|
|||||||
|
|
||||||
// Convert array of booleans to List of enums
|
// Convert array of booleans to List of enums
|
||||||
for(nuint i = 0; i < sizet_length; i++)
|
for(nuint i = 0; i < sizet_length; i++)
|
||||||
{
|
if(mediaTagsBuffer[i] != 0)
|
||||||
if(mediaTagsBuffer[i] != 0) _imageInfo.ReadableMediaTags.Add((MediaTagType)i);
|
_imageInfo.ReadableMediaTags.Add((MediaTagType)i);
|
||||||
}
|
|
||||||
|
|
||||||
ret = aaruf_get_media_sequence(_context, out int sequence, out int lastSequence);
|
ret = aaruf_get_media_sequence(_context, out int sequence, out int lastSequence);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user