From d41d2fff828b95460c6f71cd8dc60a26187e6900 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 24 Feb 2017 18:12:36 +0100 Subject: [PATCH] Reduced the size limit of the bonus drive to 4MB --- source/fatfs/diskio.c | 2 +- source/godmode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fatfs/diskio.c b/source/fatfs/diskio.c index fc56653..3eec4f7 100644 --- a/source/fatfs/diskio.c +++ b/source/fatfs/diskio.c @@ -14,7 +14,7 @@ #include "sdmmc.h" -#define FREE_MIN_SECTORS 0x10000 // minimum sectors for the free drive to appear +#define FREE_MIN_SECTORS 0x2000 // minimum sectors for the free drive to appear (4MB) #define FPDRV(pdrv) (((pdrv >= 7) && !nand_type_img) ? pdrv + 3 : pdrv) #define PART_TYPE(pdrv) (DriveInfo[FPDRV(pdrv)].type) diff --git a/source/godmode.c b/source/godmode.c index b8f73df..2815a36 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -1359,7 +1359,7 @@ u32 GodMode() { } else if (pad_state & BUTTON_HOME) { // Home menu const char* optionstr[] = { "Poweroff system", "Reboot system", "SD format menu", "Bonus drive setup", "Switch EmuNAND" }; u32 n_opt = 3; - int bonus = (GetNandUnusedSectors(NAND_SYSNAND) > 0x10000) ? (int) ++n_opt : -1; + int bonus = (GetNandUnusedSectors(NAND_SYSNAND) > 0x2000) ? (int) ++n_opt : -1; // 4MB minsize int multi = (CheckMultiEmuNand()) ? (int) ++n_opt : -1; if (bonus < 0) optionstr[3] = "Switch EmuNAND"; u32 user_select = ShowSelectPrompt(n_opt, optionstr, "HOME button pressed.\nSelect action:" );