}
// detect wrong extensions
- if (!strcmp(ext, "srm") || !strcmp(ext, "gz")) // s.gz ~ .mds.gz
+ if (!strcasecmp(ext, "srm") || !strcasecmp(ext, "gz")) // s.gz ~ .mds.gz
return PM_BAD_DETECT;
/* don't believe in extensions, except .cue and .chd */
ext = NULL;
}
}
- if (ext && !strcmp(ext,"gg") && !PicoIn.hwSelect) {
+ if (ext && !strcasecmp(ext,"gg") && !PicoIn.hwSelect) {
PicoIn.AHW |= PAHW_GG;
lprintf("detected GG ROM\n");
- } else if (ext && !strcmp(ext,"sg")) {
+ } else if (ext && !strcasecmp(ext,"sg")) {
PicoIn.AHW |= PAHW_SG;
lprintf("detected SG-1000 ROM\n");
- } else if (ext && !strcmp(ext,"sc")) {
+ } else if (ext && !strcasecmp(ext,"sc")) {
PicoIn.AHW |= PAHW_SC;
lprintf("detected SC-3000 ROM\n");
} else
int len = strlen(fname);\r
void *afile = NULL;\r
\r
- if (len > 3 && strcmp(fname + len - 3, ".gz") == 0)\r
+ if (len > 3 && strcasecmp(fname + len - 3, ".gz") == 0)\r
{\r
if ( (afile = gzopen(fname, is_save ? "wb" : "rb")) ) {\r
set_cbs(1);\r
movie_data = 0;\r
}\r
\r
- if (!strcmp(ext, ".gmv"))\r
+ if (!strcasecmp(ext, ".gmv"))\r
{\r
// check for both gmv and rom\r
int dummy;\r
get_ext(rom_fname, ext);\r
lprintf("gmv loaded for %s\n", rom_fname);\r
}\r
- else if (!strcmp(ext, ".pat"))\r
+ else if (!strcasecmp(ext, ".pat"))\r
{\r
int dummy;\r
PicoPatchLoad(rom_fname);\r