diff options
| -rw-r--r-- | libpcsxcore/ppf.c | 4 |
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]);
|
