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
the usual android buildfix
[pcsx_rearmed.git]
/
libpcsxcore
/
misc.c
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
702f690
..
feabe15
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-112,7
+112,7
@@
int GetCdromFile(u8 *mdir, u8 *time, char *filename) {
int i;
// only try to scan if a filename is given
int i;
// only try to scan if a filename is given
- if (!strlen(filename)) return -1;
+ if (
filename == INVALID_PTR ||
!strlen(filename)) return -1;
i = 0;
while (i < 4096) {
i = 0;
while (i < 4096) {
@@
-243,7
+243,7
@@
int LoadCdrom() {
getFromCnf((char *)buf + 12, "EVENT", &cnf_event);
getFromCnf((char *)buf + 12, "STACK", &cnf_stack);
if (Config.HLE)
getFromCnf((char *)buf + 12, "EVENT", &cnf_event);
getFromCnf((char *)buf + 12, "STACK", &cnf_stack);
if (Config.HLE)
- psxBiosCnfLoaded(cnf_tcb, cnf_event);
+ psxBiosCnfLoaded(cnf_tcb, cnf_event
, cnf_stack
);
// Read the EXE-Header
READTRACK();
// Read the EXE-Header
READTRACK();