1
0
chocolate-doom/chdoom-iwaddir.diff

30 lines
942 B
Diff
Raw Normal View History

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