mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[SGI Volume Header] Big endian enums are being properly marshalled. Fixes #789
This commit is contained in:
@@ -141,8 +141,6 @@ public sealed class SGI : IPartition
|
||||
AaruConsole.DebugWriteLine("SGIVH plugin", "dvh.partitions[{0}].first_block = {1}", i,
|
||||
dvh.partitions[i].first_block);
|
||||
|
||||
// TODO: Solve big endian marshal with enumerations
|
||||
dvh.partitions[i].type = (SGIType)Swapping.Swap((uint)dvh.partitions[i].type);
|
||||
AaruConsole.DebugWriteLine("SGIVH plugin", "dvh.partitions[{0}].type = {1}", i, dvh.partitions[i].type);
|
||||
|
||||
var part = new CommonTypes.Partition
|
||||
@@ -245,7 +243,7 @@ public sealed class SGI : IPartition
|
||||
/// <summary></summary>
|
||||
public readonly uint first_block;
|
||||
/// <summary></summary>
|
||||
public SGIType type;
|
||||
public readonly SGIType type;
|
||||
}
|
||||
|
||||
struct DeviceParameters
|
||||
|
||||
Reference in New Issue
Block a user