forked from Mirror/GodMode9
Fix SD mount issues
This commit is contained in:
parent
51a254a9b9
commit
a8bf80ee2a
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// GodMode9 version
|
// GodMode9 version
|
||||||
#define VERSION "1.1.2"
|
#define VERSION "1.1.3"
|
||||||
|
|
||||||
// Maximum payload size (arbitrary value!)
|
// Maximum payload size (arbitrary value!)
|
||||||
#define SELF_MAX_SIZE (320 * 1024) // 320kB
|
#define SELF_MAX_SIZE (320 * 1024) // 320kB
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
// Volume2Partition resolution table
|
// Volume2Partition resolution table
|
||||||
PARTITION VolToPart[] = {
|
PARTITION VolToPart[] = {
|
||||||
{0, 1}, {1, 0}, {2, 0}, {3, 0}, {4, 0},
|
{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0},
|
||||||
{5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}
|
{5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -70,10 +70,12 @@ bool FormatSDCard(u64 hidden_mb, u32 cluster_size, const char* label) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// format the SD card
|
// format the SD card
|
||||||
|
VolToPart[0].pt = 1; // workaround to prevent FatFS rebuilding the MBR
|
||||||
InitSDCardFS();
|
InitSDCardFS();
|
||||||
UINT c_size = cluster_size;
|
UINT c_size = cluster_size;
|
||||||
bool ret = (f_mkfs("0:", FM_FAT32, c_size, MAIN_BUFFER, MAIN_BUFFER_SIZE) == FR_OK) && (f_setlabel((label) ? label : "0:GM9SD") == FR_OK);
|
bool ret = (f_mkfs("0:", FM_FAT32, c_size, MAIN_BUFFER, MAIN_BUFFER_SIZE) == FR_OK) && (f_setlabel((label) ? label : "0:GM9SD") == FR_OK);
|
||||||
DeinitSDCardFS();
|
DeinitSDCardFS();
|
||||||
|
VolToPart[0].pt = 0; // revert workaround to prevent SD mount problems
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user