forked from pool/chocolate-doom
Jan Engelhardt
eeb9e698ce
OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=26
30 lines
942 B
Diff
30 lines
942 B
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2013-05-02 09:45:54.544886176 +0200
|
|
Upstream: maybe - this patch is quite specific to openSUSE
|
|
|
|
Make sure we always scan /usr paths for IWADs too, even if
|
|
XDG_DATA_DIRS is set.
|
|
|
|
prboom-plus and doomsday (in openSUSE) look in /usr/share/doom for
|
|
IWADs, and so should chocolate-doom.
|
|
|
|
---
|
|
src/d_iwad.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
Index: chocolate-doom-2.3.0/src/d_iwad.c
|
|
===================================================================
|
|
--- chocolate-doom-2.3.0.orig/src/d_iwad.c
|
|
+++ chocolate-doom-2.3.0/src/d_iwad.c
|
|
@@ -650,6 +650,10 @@ static void AddXdgDirs(void)
|
|
// source ports is /usr/share/games/doom - we support this through the
|
|
// XDG_DATA_DIRS mechanism, through which it can be overridden.
|
|
AddIWADPath(env, "/games/doom");
|
|
+
|
|
+ env = "/usr/local/share:/usr/share";
|
|
+ AddIWADPath(env, "/games/doom");
|
|
+ AddIWADPath(env, "/doom");
|
|
}
|
|
#endif
|
|
|