From: notaz Date: Wed, 22 Jun 2011 16:35:29 +0000 (+0300) Subject: ppf.c: backport fix from pcsxr X-Git-Tag: r9~60 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e44d6f63e9f1af3236fbbe2f59016cd42a67d98;p=pcsx_rearmed.git ppf.c: backport fix from pcsxr weimingzhi: -(Infy11)ppf.c: Fixed stuck at start of games with empty CD-ROM ID (Issue #8266). --- 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]);