mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix warnings
This commit is contained in:
parent
0f8b4c248e
commit
48b54d5d68
@ -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) {
|
||||
|
||||
@ -54,6 +54,7 @@
|
||||
#include <errno.h>
|
||||
#include <nds.h>
|
||||
#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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user