Revert to malloc for allocating ramdrive on DSi (#147)

This commit is contained in:
Pk11 2022-01-08 00:18:10 -06:00 committed by GitHub
parent d8bf2447ec
commit 454cdbcc50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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