mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use new marshaller in Alcohol 120% disc images.
This commit is contained in:
@@ -96,7 +96,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
{
|
{
|
||||||
byte[] sesHdr = new byte[24];
|
byte[] sesHdr = new byte[24];
|
||||||
stream.Read(sesHdr, 0, 24);
|
stream.Read(sesHdr, 0, 24);
|
||||||
AlcoholSession session = Marshal.ByteArrayToStructureLittleEndian<AlcoholSession>(sesHdr);
|
AlcoholSession session = Marshal.SpanToStructureLittleEndian<AlcoholSession>(sesHdr);
|
||||||
|
|
||||||
DicConsole.DebugWriteLine("Alcohol 120% plugin", "session[{1}].sessionStart = {0}",
|
DicConsole.DebugWriteLine("Alcohol 120% plugin", "session[{1}].sessionStart = {0}",
|
||||||
session.sessionStart, i);
|
session.sessionStart, i);
|
||||||
@@ -207,7 +207,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
byte[] extHdr = new byte[8];
|
byte[] extHdr = new byte[8];
|
||||||
stream.Seek(track.extraOffset, SeekOrigin.Begin);
|
stream.Seek(track.extraOffset, SeekOrigin.Begin);
|
||||||
stream.Read(extHdr, 0, 8);
|
stream.Read(extHdr, 0, 8);
|
||||||
AlcoholTrackExtra extra = Marshal.ByteArrayToStructureLittleEndian<AlcoholTrackExtra>(extHdr);
|
AlcoholTrackExtra extra = Marshal.SpanToStructureLittleEndian<AlcoholTrackExtra>(extHdr);
|
||||||
|
|
||||||
DicConsole.DebugWriteLine("Alcohol 120% plugin", "track[{1}].extra.pregap = {0}", extra.pregap,
|
DicConsole.DebugWriteLine("Alcohol 120% plugin", "track[{1}].extra.pregap = {0}", extra.pregap,
|
||||||
track.point);
|
track.point);
|
||||||
@@ -227,7 +227,7 @@ namespace DiscImageChef.DiscImages
|
|||||||
byte[] footer = new byte[16];
|
byte[] footer = new byte[16];
|
||||||
stream.Seek(footerOff, SeekOrigin.Begin);
|
stream.Seek(footerOff, SeekOrigin.Begin);
|
||||||
stream.Read(footer, 0, 16);
|
stream.Read(footer, 0, 16);
|
||||||
alcFooter = Marshal.ByteArrayToStructureLittleEndian<AlcoholFooter>(footer);
|
alcFooter = Marshal.SpanToStructureLittleEndian<AlcoholFooter>(footer);
|
||||||
|
|
||||||
DicConsole.DebugWriteLine("Alcohol 120% plugin", "footer.filenameOffset = {0}",
|
DicConsole.DebugWriteLine("Alcohol 120% plugin", "footer.filenameOffset = {0}",
|
||||||
alcFooter.filenameOffset);
|
alcFooter.filenameOffset);
|
||||||
|
|||||||
Reference in New Issue
Block a user