Add hack for broken bin/cue loading right now at startup
authortwinaphex <autechre1024@hotmail.com>
Fri, 3 May 2013 23:10:21 +0000 (01:10 +0200)
committertwinaphex <autechre1024@hotmail.com>
Fri, 3 May 2013 23:10:21 +0000 (01:10 +0200)
Makefile.libretro
libpcsxcore/cdriso.c

index 8e9cdd1..db1feb0 100644 (file)
@@ -108,6 +108,8 @@ else
    CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__
 endif
 
+CFLAGS += -D__LIBRETRO__
+
 CFLAGS += -fPIC
 ifneq ($(platform),qnx)
    LDLIBS += -lpthread
index 9ca4172..24ac891 100644 (file)
@@ -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));