From 66a9b27dc0778f41c514fd22bc63c73cde9059f8 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Mon, 25 Sep 2017 14:42:28 +0100 Subject: [PATCH] check for running DSi app too --- source/disc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/disc.c b/source/disc.c index d27da2a..5f22b49 100755 --- a/source/disc.c +++ b/source/disc.c @@ -87,10 +87,11 @@ const INTERFACE_ID _FAT_disc_interfaces[] = { /* ====================== NDS ====================== */ #elif defined (NDS) #include +#include #include 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[] = {