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:
CTCaer
2025-11-07 13:33:34 +02:00
parent 0aa35d16da
commit 50d56c7b4b
2 changed files with 39 additions and 30 deletions

View File

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