mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Revert "Asynchrously clear MEP" to fix misdetected X button presses
This reverts commit 46f32cea1e.
This commit is contained in:
parent
46f32cea1e
commit
d05294f4bf
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user