misc: backport pal detection from pcsxr
authornotaz <notasas@gmail.com>
Fri, 4 Feb 2011 23:35:13 +0000 (01:35 +0200)
committernotaz <notasas@gmail.com>
Wed, 9 Feb 2011 12:59:32 +0000 (14:59 +0200)
libpcsxcore/misc.c

index 1fa763f..7353c3b 100644 (file)
@@ -333,7 +333,7 @@ int CheckCdrom() {
        }
 
        if (Config.PsxAuto) { // autodetect system (pal or ntsc)
-               if (strstr(exename, "ES") != NULL)
+               if (CdromId[2] == 'e' || CdromId[2] == 'E')
                        Config.PsxType = PSX_TYPE_PAL; // pal
                else Config.PsxType = PSX_TYPE_NTSC; // ntsc
        }