From 937c7e5283809a100d4b504296576878d2016ea0 Mon Sep 17 00:00:00 2001 From: lentillog Date: Tue, 20 Sep 2016 11:18:27 -0700 Subject: [PATCH] (vita) Updated build to work on Vita --- Makefile.libretro | 13 ++++++++----- pico/cart.c | 4 +++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index 917c765f..9e20e247 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -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) diff --git a/pico/cart.c b/pico/cart.c index d237fad9..3bab6158 100644 --- a/pico/cart.c +++ b/pico/cart.c @@ -332,7 +332,9 @@ int pm_seek(pm_file *stream, long offset, int whence) if (stream->type == PMT_UNCOMPRESSED) { fseek(stream->file, offset, whence); - return ftell(stream->file); + int ret = ftell(stream->file); + elprintf(EL_STATUS, "seeked ok."); //HACK for VITA + return ret; } #ifndef NO_ZLIB else if (stream->type == PMT_ZIP) -- 2.39.5