mirror of https://github.com/mgba-emu/mgba.git
mGUI: Make "bios" name check case-insensitive
This commit is contained in:
parent
ff3c68bbd6
commit
21cfb15f99
|
@ -31,7 +31,7 @@ static bool _biosNamed(const char* name) {
|
||||||
char ext[PATH_MAX + 1] = {};
|
char ext[PATH_MAX + 1] = {};
|
||||||
separatePath(name, NULL, NULL, ext);
|
separatePath(name, NULL, NULL, ext);
|
||||||
|
|
||||||
if (strstr(name, "bios")) {
|
if (strcasestr(name, "bios")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!strncmp(ext, "bin", PATH_MAX)) {
|
if (!strncmp(ext, "bin", PATH_MAX)) {
|
||||||
|
|
Loading…
Reference in New Issue