Reduced the size limit of the bonus drive to 4MB

This commit is contained in:
d0k3 2017-02-24 18:12:36 +01:00
parent 71e433643e
commit d41d2fff82
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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:" );