mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Revert to malloc for allocating ramdrive on DSi (#147)
This commit is contained in:
parent
d8bf2447ec
commit
454cdbcc50
@ -20,7 +20,7 @@ const u16 bootSectorSignature = 0xAA55;
|
|||||||
|
|
||||||
bool ramd_startup() {
|
bool ramd_startup() {
|
||||||
if(isDSiMode() || REG_SCFG_EXT != 0) {
|
if(isDSiMode() || REG_SCFG_EXT != 0) {
|
||||||
ramdLoc = (u8*)calloc(0x6000 * SECTOR_SIZE, 1);
|
ramdLoc = (u8*)malloc(0x6000 * SECTOR_SIZE);
|
||||||
} else {
|
} else {
|
||||||
ramdLoc = (u8*)calloc(0x8 * SECTOR_SIZE, 1);
|
ramdLoc = (u8*)calloc(0x8 * SECTOR_SIZE, 1);
|
||||||
toncset(ramdLocMep, 0, (ramdSectors - 0x8) * SECTOR_SIZE); // Fill MEP with 00 to avoid displaying weird files
|
toncset(ramdLocMep, 0, (ramdSectors - 0x8) * SECTOR_SIZE); // Fill MEP with 00 to avoid displaying weird files
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user