diff options
Diffstat (limited to 'patches/prboom')
-rw-r--r-- | patches/prboom/0001-skip-zclose.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/prboom/0001-skip-zclose.patch b/patches/prboom/0001-skip-zclose.patch new file mode 100644 index 0000000..51b81b0 --- /dev/null +++ b/patches/prboom/0001-skip-zclose.patch @@ -0,0 +1,27 @@ +diff --git a/Makefile b/Makefile +index 5dfa675..c913d73 100644 +--- a/Makefile ++++ b/Makefile +@@ -163,7 +163,8 @@ else ifeq ($(platform), classic_armv7_a7) + -falign-functions=1 -falign-jumps=1 -falign-loops=1 \ + -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \ + -fmerge-all-constants -fno-math-errno \ +- -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard ++ -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard \ ++ -DSKIP_ZCLOSE + CXXFLAGS += $(CFLAGS) + HAVE_NEON = 1 + ARCH = arm +diff --git a/src/z_zone.c b/src/z_zone.c +index bf9ec1a..5a89885 100644 +--- a/src/z_zone.c ++++ b/src/z_zone.c +@@ -116,7 +116,7 @@ void Z_Close(void) + /* The libretro core will crash on + * close content if we free memory + * here while running on Windows... */ +-#if !defined(_WIN32) ++#if !defined(_WIN32) && !defined(SKIP_ZCLOSE) + Z_FreeTags(PU_FREE, PU_MAX); + #endif + memory_size = 0; |