check for running DSi app too

This commit is contained in:
Dave Murphy 2017-09-25 14:42:28 +01:00
parent b650b070ba
commit 66a9b27dc0

View File

@ -87,10 +87,11 @@ const INTERFACE_ID _FAT_disc_interfaces[] = {
/* ====================== NDS ====================== */ /* ====================== NDS ====================== */
#elif defined (NDS) #elif defined (NDS)
#include <nds/system.h> #include <nds/system.h>
#include <nds/memory.h>
#include <nds/arm9/dldi.h> #include <nds/arm9/dldi.h>
static const DISC_INTERFACE* get_io_dsisd (void) { static const DISC_INTERFACE* get_io_dsisd (void) {
return isDSiMode() ? &__io_dsisd : NULL; return (isDSiMode() && __NDSHeader->unitCode ) ? &__io_dsisd : NULL;
} }
const INTERFACE_ID _FAT_disc_interfaces[] = { const INTERFACE_ID _FAT_disc_interfaces[] = {