Skip to content

Commit

Permalink
GPT: listen to custom property
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Feb 27, 2024
1 parent 201e196 commit 574fcb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FirmwareGen/CommonLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static byte[] GetPrimaryGPT(IDeviceProfile deviceProfile)

return [
.. PrimaryMBR,
.. GPTUtils.MakeGPT(DiskSize, SectorSize, deviceProfile.GetPartitionLayout(), deviceProfile.GetDiskGuid(), IsBackupGPT: false, SplitInHalf: deviceProfile.GetSplittingStrategy() == SplittingStrategy.HalfSplit)
.. GPTUtils.MakeGPT(DiskSize, SectorSize, deviceProfile.GetPartitionLayout(), deviceProfile.GetDiskGuid(), IsBackupGPT: false, SplitInHalf: deviceProfile.GetSplittingStrategy() == SplittingStrategy.HalfSplit, AndroidDesiredSpace: deviceProfile.GetSplittingStrategy() == SplittingStrategy.Custom ? deviceProfile.GetCustomSplittingAndroidDesiredSpace() : 4_294_967_296)
];
}

Expand All @@ -36,7 +36,7 @@ public static byte[] GetBackupGPT(IDeviceProfile deviceProfile)
ulong DiskSize = deviceProfile.GetDiskTotalSize();
uint SectorSize = deviceProfile.GetDiskSectorSize();

return GPTUtils.MakeGPT(DiskSize, SectorSize, deviceProfile.GetPartitionLayout(), deviceProfile.GetDiskGuid(), IsBackupGPT: true, SplitInHalf: deviceProfile.GetSplittingStrategy() == SplittingStrategy.HalfSplit);
return GPTUtils.MakeGPT(DiskSize, SectorSize, deviceProfile.GetPartitionLayout(), deviceProfile.GetDiskGuid(), IsBackupGPT: true, SplitInHalf: deviceProfile.GetSplittingStrategy() == SplittingStrategy.HalfSplit, AndroidDesiredSpace: deviceProfile.GetSplittingStrategy() == SplittingStrategy.Custom ? deviceProfile.GetCustomSplittingAndroidDesiredSpace() : 4_294_967_296);
}

public static string GetBlankVHD(IDeviceProfile deviceProfile)
Expand Down

0 comments on commit 574fcb8

Please sign in to comment.