From 4e44d6f63e9f1af3236fbbe2f59016cd42a67d98 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 22 Jun 2011 19:35:29 +0300 Subject: [PATCH] ppf.c: backport fix from pcsxr weimingzhi: -(Infy11)ppf.c: Fixed stuck at start of games with empty CD-ROM ID (Issue #8266). --- libpcsxcore/ppf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c index ee32d8bb..6fcd5bc1 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]); -- 2.39.5