Revert "Asynchrously clear MEP" to fix misdetected X button presses

This reverts commit 46f32cea1e.
This commit is contained in:
RocketRobz 2022-01-02 18:41:40 -07:00
parent 46f32cea1e
commit d05294f4bf

View File

@ -4,12 +4,6 @@
#include <nds/disc_io.h>
#include "tonccpy.h"
static inline void dmaFillAsynch(const void* src, void* dest, u32 size) {
DMA_SRC(3) = (u32)src;
DMA_DEST(3) = (u32)dest;
DMA_CR(3) = DMA_COPY_WORDS | DMA_SRC_FIX | (size>>2);
}
#define SECTOR_SIZE 512
const static u8 bootSector[] = {
@ -27,9 +21,8 @@ bool ramd_startup() {
if(isDSiMode() || REG_SCFG_EXT != 0) {
ramdLoc = (u8*)malloc(0x4800 * SECTOR_SIZE);
} else {
u32 byte = 0;
ramdLoc = (u8*)malloc(0x8 * SECTOR_SIZE);
dmaFillAsynch((void*)&byte, ramdLocMep, (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
}
tonccpy(ramdLoc, bootSector, sizeof(bootSector));