From: Twinaphex Date: Wed, 28 Sep 2016 01:48:16 +0000 (+0200) Subject: Merge pull request #37 from lentillog/feature/remove-hack X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36745acc514bbd380787434b12471d9b99b2ffc5;hp=32cc15e8116db5fa6eb191212f76352707fb25a0;p=picodrive.git Merge pull request #37 from lentillog/feature/remove-hack (VITA) Removed gross hack with optimization workaround --- diff --git a/Makefile.libretro b/Makefile.libretro index 9e20e24..3b7c0fe 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -263,7 +263,7 @@ 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 += -mfloat-abi=hard -ffast-math -mword-relocations -fno-optimize-sibling-calls CFLAGS += -marm -mfpu=neon -mcpu=cortex-a9 -march=armv7-a STATIC_LINKING = 1 NO_MMAP = 1 diff --git a/pico/cart.c b/pico/cart.c index 3bab615..d237fad 100644 --- a/pico/cart.c +++ b/pico/cart.c @@ -332,9 +332,7 @@ int pm_seek(pm_file *stream, long offset, int whence) if (stream->type == PMT_UNCOMPRESSED) { fseek(stream->file, offset, whence); - int ret = ftell(stream->file); - elprintf(EL_STATUS, "seeked ok."); //HACK for VITA - return ret; + return ftell(stream->file); } #ifndef NO_ZLIB else if (stream->type == PMT_ZIP)