Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 66a9b27

Browse files
committed
check for running DSi app too
1 parent b650b07 commit 66a9b27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/disc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ const INTERFACE_ID _FAT_disc_interfaces[] = {
8787
/* ====================== NDS ====================== */
8888
#elif defined (NDS)
8989
#include <nds/system.h>
90+
#include <nds/memory.h>
9091
#include <nds/arm9/dldi.h>
9192

9293
static const DISC_INTERFACE* get_io_dsisd (void) {
93-
return isDSiMode() ? &__io_dsisd : NULL;
94+
return (isDSiMode() && __NDSHeader->unitCode ) ? &__io_dsisd : NULL;
9495
}
9596

9697
const INTERFACE_ID _FAT_disc_interfaces[] = {

0 commit comments

Comments
 (0)