notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libretro: call video_cb on every frame
[pcsx_rearmed.git]
/
libpcsxcore
/
ppf.c
diff --git
a/libpcsxcore/ppf.c
b/libpcsxcore/ppf.c
index
268ed1c
..
6fcd5bc
100644
(file)
--- a/
libpcsxcore/ppf.c
+++ b/
libpcsxcore/ppf.c
@@
-190,6
+190,8
@@
void BuildPPFCache() {
FreePPFCache();
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]);
// 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) {
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;
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 (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;
sbi_sectors = calloc(1, sector_count / 8);
if (sbi_sectors == NULL)
return -1;