diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 823e82c48..902e2f0c8 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -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;