From 38fca0bb3ca523bbf216977484d8d440d2063e67 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 6 Jun 2009 05:22:00 +0000 Subject: [PATCH] fix loading of zipfiles --- desmume/src/NDSSystem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;