Fix warnings

This commit is contained in:
RocketRobz 2022-01-02 00:52:51 -07:00
parent 0f8b4c248e
commit 48b54d5d68
2 changed files with 3 additions and 2 deletions

View File

@ -173,7 +173,7 @@ int main(int argc, char **argv) {
} else if (isRegularDS && (io_dldi_data->ioInterface.features & FEATURE_SLOT_NDS)) { } else if (isRegularDS && (io_dldi_data->ioInterface.features & FEATURE_SLOT_NDS)) {
*(vu32*)(0x08240000) = 1; *(vu32*)(0x08240000) = 1;
expansionPakFound = ((*(vu32*)(0x08240000) == 1)); expansionPakFound = ((*(vu32*)(0x08240000) == 1));
if(expansionPakFound); if(expansionPakFound)
ramdriveMount(false); ramdriveMount(false);
} }
if (!isDSiMode() || !yHeld) { if (!isDSiMode() || !yHeld) {

View File

@ -54,6 +54,7 @@
#include <errno.h> #include <errno.h>
#include <nds.h> #include <nds.h>
#include "nitrofs.h" #include "nitrofs.h"
#include "tonccpy.h"
//This seems to be a typo! memory.h has REG_EXEMEMCNT //This seems to be a typo! memory.h has REG_EXEMEMCNT
#ifndef REG_EXMEMCNT #ifndef REG_EXMEMCNT
@ -110,7 +111,7 @@ inline ssize_t nitroSubRead(off_t *npos, void *ptr, size_t len)
} }
else else
{ //reading from gbarom { //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) if (len > 0)
*npos += len; *npos += len;