From: lentillog Date: Tue, 20 Sep 2016 18:18:27 +0000 (-0700) Subject: (vita) Updated build to work on Vita X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=937c7e5283809a100d4b504296576878d2016ea0;p=picodrive.git (vita) Updated build to work on Vita --- diff --git a/Makefile.libretro b/Makefile.libretro index 917c765..9e20e24 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 d237fad..3bab615 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)