summaryrefslogtreecommitdiff
path: root/libpcsxcore/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/misc.c')
-rw-r--r--libpcsxcore/misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index 349e4543..35b9bd7a 100644
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -331,7 +331,8 @@ int CheckCdrom() {
}
if (Config.PsxAuto) { // autodetect system (pal or ntsc)
- if (strstr(exename, "ES") != NULL)
+ if( (CdromId[2] == 'e' && CdromId[3] == 's') ||
+ (CdromId[2] == 'E' && CdromId[3] == 'S') )
Config.PsxType = PSX_TYPE_PAL; // pal
else Config.PsxType = PSX_TYPE_NTSC; // ntsc
}