mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Reduced the size limit of the bonus drive to 4MB
This commit is contained in:
parent
71e433643e
commit
d41d2fff82
@ -14,7 +14,7 @@
|
|||||||
#include "sdmmc.h"
|
#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 FPDRV(pdrv) (((pdrv >= 7) && !nand_type_img) ? pdrv + 3 : pdrv)
|
||||||
#define PART_TYPE(pdrv) (DriveInfo[FPDRV(pdrv)].type)
|
#define PART_TYPE(pdrv) (DriveInfo[FPDRV(pdrv)].type)
|
||||||
|
@ -1359,7 +1359,7 @@ u32 GodMode() {
|
|||||||
} else if (pad_state & BUTTON_HOME) { // Home menu
|
} else if (pad_state & BUTTON_HOME) { // Home menu
|
||||||
const char* optionstr[] = { "Poweroff system", "Reboot system", "SD format menu", "Bonus drive setup", "Switch EmuNAND" };
|
const char* optionstr[] = { "Poweroff system", "Reboot system", "SD format menu", "Bonus drive setup", "Switch EmuNAND" };
|
||||||
u32 n_opt = 3;
|
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;
|
int multi = (CheckMultiEmuNand()) ? (int) ++n_opt : -1;
|
||||||
if (bonus < 0) optionstr[3] = "Switch EmuNAND";
|
if (bonus < 0) optionstr[3] = "Switch EmuNAND";
|
||||||
u32 user_select = ShowSelectPrompt(n_opt, optionstr, "HOME button pressed.\nSelect action:" );
|
u32 user_select = ShowSelectPrompt(n_opt, optionstr, "HOME button pressed.\nSelect action:" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user