summaryrefslogtreecommitdiff
path: root/games/vkquake/files/patch-Quake_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/vkquake/files/patch-Quake_common.c')
-rw-r--r--games/vkquake/files/patch-Quake_common.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/vkquake/files/patch-Quake_common.c b/games/vkquake/files/patch-Quake_common.c
new file mode 100644
index 000000000000..8e09d95b6ada
--- /dev/null
+++ b/games/vkquake/files/patch-Quake_common.c
@@ -0,0 +1,17 @@
+ vkQuake is packaged with .orig files in ${WRKSRC}/Misc/vq_pak/maps, these
+ files will conflict with the makepatch script in
+ ${PORTSDIR}/Mk/Scripts/smart_makepatch.sh, which results in a makepatch
+ process that does not generate this patch. To get around this, remove
+ ${WRKSRC}/Misc/vq_pak/maps when the patches need to be regenerated.
+
+--- Quake/common.c.orig 2025-05-01 11:30:09 UTC
++++ Quake/common.c
+@@ -2454,7 +2454,7 @@ void COM_InitFilesystem (void) // johnfitz -- modified
+ if (i && i < com_argc - 1)
+ q_strlcpy (com_basedir, com_argv[i + 1], sizeof (com_basedir));
+ else
+- q_strlcpy (com_basedir, host_parms->basedir, sizeof (com_basedir));
++ q_strlcpy (com_basedir, DATADIR, sizeof (com_basedir));
+
+ j = strlen (com_basedir);
+ if (j < 1)