aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gzdoom-search-in-installed-share.patch
blob: f3126865667371fe5a7a381548882990d390f3e7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Lookup gzdoom pk3 files in the installed directory in
addition to the path that is stored in ~/.config/gzdoom/.

Simply replacing the hardcoded /usr/share would leave the
configfile pointing to outdated guix builds, which could get
garbage collected and break the gzdoom installation.
This ensures that the files installed with the corresponding
build will be used.

--- /src/d_main.cpp	2018-01-16 22:13:09.700602781 +0200
+++ /src/d_main.cpp	2018-01-16 22:22:36.560617961 +0200
@@ -1716,6 +1716,11 @@
 		return wad;
 	}
 
+    mysnprintf (wad, countof(wad), "%s/%s", GUIX_OUT_PK3, file);
+    if (DirEntryExists (wad)) {
+        return wad;
+    }
+
 	if (GameConfig != NULL && GameConfig->SetSection ("FileSearch.Directories"))
 	{
 		const char *key;
79cdbec692e3d8e20281f258d660f'>hydra: Remove useless 'parameterize'....Clément Lassieur 2018-09-13hydra: Add support for manifests....Clément Lassieur 2018-06-15hydra: Make sure we add an absolute file name to the load path....Ludovic Courtès 2018-06-10hydra: guix-modular: Build the full Guix....Ludovic Courtès 2018-05-12hydra: Switch back to "-" instead of "@" in package job names....Ludovic Courtès 2018-04-09hydra: Fix uses of 'eval-when'....Ludovic Courtès 2018-04-08hydra: guix-modular: Honor the 'systems' argument....Ludovic Courtès 2018-04-08hydra: guix-modular: Explicitly build for the latest 2.2....Ludovic Courtès 2018-04-08hydra: Clear '%load-compiled-path' for gnu-system.scm....Ludovic Courtès 2018-04-08hydra: 'guix-modular' jobs use the new 'build-self'....Ludovic Courtès 2018-04-08cuirass: Add job specs for the modular Guix....Ludovic Courtès 2018-02-01Merge branch 'master' into core-updatesMarius Bakke 2018-01-29hydra: Fix up arm qemu job....Danny Milosavljevic 2018-01-29hydra: Only build the "flash image" on arm....Danny Milosavljevic 2018-01-29hydra: Work around import problem....Danny Milosavljevic 2018-01-29hydra: Add (gnu bootloader) import....Danny Milosavljevic 2018-01-29hydra: Add arm image builder....Danny Milosavljevic 2018-01-21hydra: Make the list of target systems a parameter....Ludovic Courtès 2017-12-29hydra: Do not cross-build from non-Intel platforms....Ludovic Courtès