diff --git a/source/arm11/config.c b/source/arm11/config.c index 8499ad0..fd12eb5 100644 --- a/source/arm11/config.c +++ b/source/arm11/config.c @@ -107,6 +107,7 @@ FILINFO fileStat; s32 file; u32 fileSize; + bool SdPresent; bool createFile = false; if(filebuf) @@ -114,8 +115,12 @@ configDirty = false; - // first, try SD card fatfs - if(true) // !!! if(bootInfo.sd_status == 2) + + /* first, try SD card fatfs */ + + SdPresent = fIsDevActive(FS_DEVICE_SDMC); + + if(SdPresent) { filepath = SdmcFilepath; @@ -125,7 +130,7 @@ createFile = true; } } - else + else /* use NAND */ { filepath = NandFilepath;