aboutsummaryrefslogtreecommitdiff
path: root/patches/prboom
diff options
context:
space:
mode:
authorneonloop2023-01-25 07:02:16 +0000
committerneonloop2023-01-25 07:02:16 +0000
commitda4eb199cdb9b587f432a85b493d99b5dd62681a (patch)
treecd1c8d028ee3363e0f5ef14762b35cfacb0d7b4c /patches/prboom
parent4383b7dad5e24eec8623a81fdb647485b6f4078a (diff)
downloadpicoarch-da4eb199cdb9b587f432a85b493d99b5dd62681a.tar.gz
picoarch-da4eb199cdb9b587f432a85b493d99b5dd62681a.tar.bz2
picoarch-da4eb199cdb9b587f432a85b493d99b5dd62681a.zip
Makes minor makefile fixes, basic support for prboom, tyrquake, scummvm
Diffstat (limited to 'patches/prboom')
-rw-r--r--patches/prboom/0001-skip-zclose.patch27
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;