aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2013-05-04 01:10:21 +0200
committertwinaphex2013-05-04 01:10:21 +0200
commit5f8aa603b1f68d4bf4dbd341fed0e31b21f11bde (patch)
treef310b8eba87f3c9008e1f1e9589cde503f3909dc
parentc491fa92b693b60326421094f03b911ee71ef8d7 (diff)
downloadpcsx_rearmed-5f8aa603b1f68d4bf4dbd341fed0e31b21f11bde.tar.gz
pcsx_rearmed-5f8aa603b1f68d4bf4dbd341fed0e31b21f11bde.tar.bz2
pcsx_rearmed-5f8aa603b1f68d4bf4dbd341fed0e31b21f11bde.zip
Add hack for broken bin/cue loading right now at startup
-rw-r--r--Makefile.libretro2
-rw-r--r--libpcsxcore/cdriso.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index 8e9cdd1..db1feb0 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -108,6 +108,8 @@ else
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__
endif
+CFLAGS += -D__LIBRETRO__
+
CFLAGS += -fPIC
ifneq ($(platform),qnx)
LDLIBS += -lpthread
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index 9ca4172..24ac891 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -327,6 +327,7 @@ static int parsetoc(const char *isofile) {
return -1;
}
}
+#ifndef __LIBRETRO__
// check if it's really a TOC named as a .cue
fgets(linebuf, sizeof(linebuf), fi);
token = strtok(tmp, " ");
@@ -335,6 +336,7 @@ static int parsetoc(const char *isofile) {
return -1;
}
fseek(fi, 0, SEEK_SET);
+#endif
}
memset(&ti, 0, sizeof(ti));