(vita) Updated build to work on Vita
authorlentillog <lentillog@gmail.com>
Tue, 20 Sep 2016 18:18:27 +0000 (11:18 -0700)
committerlentillog <lentillog@gmail.com>
Tue, 20 Sep 2016 23:39:19 +0000 (16:39 -0700)
Makefile.libretro
pico/cart.c

index 917c765..9e20e24 100644 (file)
@@ -263,23 +263,26 @@ else ifeq ($(platform), vita)
        CC = arm-vita-eabi-gcc$(EXE_EXT)
        AR = arm-vita-eabi-ar$(EXE_EXT)
        CFLAGS += -DVITA
+       CFLAGS += -mfloat-abi=hard -ffast-math -mword-relocations
+       CFLAGS += -marm -mfpu=neon -mcpu=cortex-a9 -march=armv7-a
        STATIC_LINKING = 1
        NO_MMAP = 1
        DONT_COMPILE_IN_ZLIB = 1
        ARCH = arm
-       ARM_ASM = 1
 
        asm_memory = 1
        asm_render = 1
        asm_ym2612 = 1
-       asm_misc = 0
+       asm_misc = 1
        asm_cdpico = 0
        asm_cdmemory = 0
-       asm_mix = 0
-       use_cyclone = 0
-       use_fame = 1
+       asm_mix = 1
+       use_cyclone = 1
+       use_fame = 0
        use_drz80 = 1
        use_cz80 = 0
+       use_sh2drc = 0
+       use_svpdrc = 0
 
 # Xbox 360
 else ifeq ($(platform), xenon)
index d237fad..3bab615 100644 (file)
@@ -332,7 +332,9 @@ int pm_seek(pm_file *stream, long offset, int whence)
   if (stream->type == PMT_UNCOMPRESSED)\r
   {\r
     fseek(stream->file, offset, whence);\r
-    return ftell(stream->file);\r
+    int ret = ftell(stream->file);\r
+    elprintf(EL_STATUS, "seeked ok."); //HACK for VITA\r
+    return ret;\r
   }\r
 #ifndef NO_ZLIB\r
   else if (stream->type == PMT_ZIP)\r