From fba05d4e7a0accfb2c327abb16078e099ba20960 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Fri, 7 Nov 2025 13:33:34 +0200 Subject: [PATCH] nyx: part: add support for max 24GB resized emuMMC If a partition is added manually, 28GB is the max allowed to be created. --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index 92398377..aeec32ad 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -49,10 +49,14 @@ #include "../hos/hos.h" #include "../storage/sfd.h" +#define SECTORS_PER_GB 0x200000 + #define AU_ALIGN_SECTORS 0x8000 // 16MB. #define AU_ALIGN_BYTES (AU_ALIGN_SECTORS * SD_BLOCKSIZE) -#define SECTORS_PER_GB 0x200000 +#define HOS_USER_SECTOR 0x53C000 +#define HOS_FAT_MIN_SIZE_MB 2048 +#define HOS_USER_MIN_SIZE_MB 1024 #define HOS_USER_SECTOR 0x53C000 #define HOS_FAT_MIN_SIZE_MB 2048