nyx: part: add support for max 24GB resized emuMMC
If a partition is added manually, 28GB is the max allowed to be created.
This commit is contained in:
@@ -237,8 +237,8 @@ static void _create_mbox_emummc_raw()
|
||||
mbr_ctx.available |= BIT(i - 1);
|
||||
mbr_ctx.sector[i - 1] = part_start;
|
||||
|
||||
// Only allow up to 16GB resized emuMMC.
|
||||
if (part_size <= 0x2010000)
|
||||
// Only allow up to 28GB resized emuMMC.
|
||||
if (part_size <= 0x3810000)
|
||||
mbr_ctx.resized_cnt[i - 1] = part_size - 0xC000; // Save sectors count without protective size and BOOT0/1.
|
||||
else if (part_size >= emmc_size_safe)
|
||||
mbr_ctx.resized_cnt[i - 1] = 0;
|
||||
|
||||
Reference in New Issue
Block a user