mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
core, make system detection by extension case insensitive
This commit is contained in:
parent
ac89144969
commit
c7e1c39b28
3 changed files with 7 additions and 7 deletions
|
@ -61,7 +61,7 @@ static void *open_save_file(const char *fname, int is_save)
|
|||
int len = strlen(fname);
|
||||
void *afile = NULL;
|
||||
|
||||
if (len > 3 && strcmp(fname + len - 3, ".gz") == 0)
|
||||
if (len > 3 && strcasecmp(fname + len - 3, ".gz") == 0)
|
||||
{
|
||||
if ( (afile = gzopen(fname, is_save ? "wb" : "rb")) ) {
|
||||
set_cbs(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue