From b5707f403cd6cd68ee1e60655f5a9daa26f06f00 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Tue, 22 Mar 2011 02:47:45 +0000 Subject: -(Infy11)ppf.c: Fixed stuck at start of games with empty CD-ROM ID (Issue #8266). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64792 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/ppf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpcsxcore') diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c index d0f42dd9..e5ccdfc3 100644 --- a/libpcsxcore/ppf.c +++ b/libpcsxcore/ppf.c @@ -191,6 +191,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]); @@ -339,6 +341,8 @@ void LoadSBI() { FILE *sbihandle; char buffer[16], sbifile[MAXPATHLEN]; + if (CdromId[0] == '\0') return; + // Generate filename in the format of SLUS_123.45.sbi buffer[0] = toupper(CdromId[0]); buffer[1] = toupper(CdromId[1]); -- cgit v1.2.3