diff --git a/src/filetypes.c b/src/filetypes.c index 26d73df..9f78033 100644 --- a/src/filetypes.c +++ b/src/filetypes.c @@ -140,7 +140,7 @@ uint32_t scan_dir(char* path, FILINFO* fno_param, char mkdb, uint32_t this_dir_t break; } fn = *fno.lfname ? fno.lfname : fno.fname; - if ((*fn == '.') || !(memcmp(fn, SYS_DIR_NAME, sizeof(SYS_DIR_NAME)))) continue; + if ((*fn == '.') || !(strncasecmp(fn, SYS_DIR_NAME, sizeof(SYS_DIR_NAME)))) continue; if (fno.fattrib & AM_DIR) { depth++; if(depth < FS_MAX_DEPTH) { diff --git a/src/filetypes.h b/src/filetypes.h index d42546a..2e91e9f 100644 --- a/src/filetypes.h +++ b/src/filetypes.h @@ -36,7 +36,7 @@ #include "ff.h" #define FS_MAX_DEPTH (10) -#define SYS_DIR_NAME ((const uint8_t*)"sd2snes") +#define SYS_DIR_NAME ((const char*)"sd2snes") typedef enum { TYPE_UNKNOWN = 0, /* 0 */ TYPE_SMC, /* 1 */