diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 5c733c8..c8da100 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -173,7 +173,7 @@ int main(int argc, char **argv) { } else if (isRegularDS && (io_dldi_data->ioInterface.features & FEATURE_SLOT_NDS)) { *(vu32*)(0x08240000) = 1; expansionPakFound = ((*(vu32*)(0x08240000) == 1)); - if(expansionPakFound); + if(expansionPakFound) ramdriveMount(false); } if (!isDSiMode() || !yHeld) { diff --git a/arm9/source/nitrofs.c b/arm9/source/nitrofs.c index 2551c43..45db91a 100644 --- a/arm9/source/nitrofs.c +++ b/arm9/source/nitrofs.c @@ -54,6 +54,7 @@ #include #include #include "nitrofs.h" +#include "tonccpy.h" //This seems to be a typo! memory.h has REG_EXEMEMCNT #ifndef REG_EXMEMCNT @@ -110,7 +111,7 @@ inline ssize_t nitroSubRead(off_t *npos, void *ptr, size_t len) } else { //reading from gbarom - memcpy(ptr, *npos + (void *)GBAROM, len); //len isnt checked here because other checks exist in the callers (hopefully) + tonccpy(ptr, *npos + (void *)GBAROM, len); //len isnt checked here because other checks exist in the callers (hopefully) } if (len > 0) *npos += len;