aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2011-06-22 19:35:29 +0300
committernotaz2011-07-08 00:15:08 +0300
commit4e44d6f63e9f1af3236fbbe2f59016cd42a67d98 (patch)
treef3d45cfbe9c72810e5684131ef83dc48a0a873a9
parent28d74ee8c4a1eade72032aff056ab854d664ce48 (diff)
downloadpcsx_rearmed-4e44d6f63e9f1af3236fbbe2f59016cd42a67d98.tar.gz
pcsx_rearmed-4e44d6f63e9f1af3236fbbe2f59016cd42a67d98.tar.bz2
pcsx_rearmed-4e44d6f63e9f1af3236fbbe2f59016cd42a67d98.zip
ppf.c: backport fix from pcsxr
weimingzhi: -(Infy11)ppf.c: Fixed stuck at start of games with empty CD-ROM ID (Issue #8266).
-rw-r--r--libpcsxcore/ppf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c
index ee32d8b..6fcd5bc 100644
--- a/libpcsxcore/ppf.c
+++ b/libpcsxcore/ppf.c
@@ -190,6 +190,8 @@ void BuildPPFCache() {
FreePPFCache();
+ if (CdromId[0] == '\0') return;
+
// Generate filename in the format of SLUS_123.45
buffer[0] = toupper(CdromId[0]);
buffer[1] = toupper(CdromId[1]);