ppf.c: backport fix from pcsxr
authornotaz <notasas@gmail.com>
Wed, 22 Jun 2011 16:35:29 +0000 (19:35 +0300)
committernotaz <notasas@gmail.com>
Thu, 7 Jul 2011 21:15:08 +0000 (00:15 +0300)
weimingzhi:
-(Infy11)ppf.c: Fixed stuck at start of games with empty CD-ROM ID
(Issue #8266).

libpcsxcore/ppf.c

index ee32d8b..6fcd5bc 100644 (file)
@@ -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]);