dma: don't generate irqs after aborted DMA
[pcsx_rearmed.git] / libpcsxcore / ppf.c
index 268ed1c..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]);
@@ -335,7 +337,7 @@ void BuildPPFCache() {
 unsigned char *sbi_sectors;
 
 int LoadSBI(const char *fname, int sector_count) {
-       char buffer[16], sbifile[MAXPATHLEN];
+       char buffer[16];
        FILE *sbihandle;
        u8 sbitime[3];
        int s;
@@ -344,7 +346,6 @@ int LoadSBI(const char *fname, int sector_count) {
        if (sbihandle == NULL)
                return -1;
 
-if (sbi_sectors != NULL) printf("sbi_sectors?\n");
        sbi_sectors = calloc(1, sector_count / 8);
        if (sbi_sectors == NULL)
                return -1;