[SGI Volume Header] Big endian enums are being properly marshalled. Fixes #789

This commit is contained in:
2022-12-13 14:13:29 +00:00
parent 8b1d4a77ec
commit 9f41916e00

View File

@@ -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