mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-25 19:36:52 +01:00
check for running DSi app too
This commit is contained in:
parent
b650b070ba
commit
66a9b27dc0
@ -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[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user