fix loading of zipfiles

This commit is contained in:
zeromus 2009-06-06 05:22:00 +00:00
parent 77a8d25a13
commit 38fca0bb3c
1 changed files with 4 additions and 2 deletions

View File

@ -759,9 +759,11 @@ int NDS_LoadROM( const char *filename,
break;
}
if ( !strcmp(extROM, ".nds"))
if(!stricmp(extROM, ".zip"))
type = ROM_NDS;
else if ( !strcmp(extROM, ".gba") && !strcmp(extROM2, ".ds"))
else if ( !stricmp(extROM, ".nds"))
type = ROM_NDS;
else if ( !stricmp(extROM, ".gba") && !strcmp(extROM2, ".ds"))
type = ROM_DSGBA;
else
return -1;