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)) {
|
} 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) {
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user