summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-22 02:47:45 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-22 02:47:45 +0000
commitb5707f403cd6cd68ee1e60655f5a9daa26f06f00 (patch)
treec66adcb418cbedddb197aaf15ec5634621a6b623
parent379a8879f7dae1a9074317c0270e12dd203b32c0 (diff)
downloadpcsxr-b5707f403cd6cd68ee1e60655f5a9daa26f06f00.tar.gz
-(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
-rw-r--r--libpcsxcore/ppf.c4
1 files changed, 4 insertions, 0 deletions
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]);