From 0e2e3f498456d1175916ecd69d0a9e80e701e760 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 4 Nov 2012 02:29:54 +0200 Subject: [PATCH] handle bad cd images better --- libpcsxcore/cdrom.c | 2 +- libpcsxcore/misc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index afacad26..3bf3e033 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -556,7 +556,7 @@ static void cdrPlayInterrupt_Autopause() Tomb Raider 1 ($7) */ - if( cdr.CurTrack < btoi( subq->TrackNumber ) ) + if( cdr.CurTrack + 1 == btoi( subq->TrackNumber ) ) track_changed = 1; } else { Create_Fake_Subq(); diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 2fe5600a..aee6e3ce 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -364,6 +364,9 @@ int CheckCdrom() { } } + if (CdromId[0] == '\0') + strcpy(CdromId, "SLUS99999"); + if (Config.PsxAuto) { // autodetect system (pal or ntsc) if (CdromId[2] == 'e' || CdromId[2] == 'E') Config.PsxType = PSX_TYPE_PAL; // pal -- 2.39.5