1
0
chocolate-doom/chdoom-iwaddir.diff

30 lines
957 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-chocolate-doom-3.1.0/src/d_iwad.c
===================================================================
--- chocolate-doom-chocolate-doom-3.1.0.orig/src/d_iwad.c
+++ chocolate-doom-chocolate-doom-3.1.0/src/d_iwad.c
@@ -690,6 +690,10 @@ static void AddXdgDirs(void)
// Edition into this directory, under which includes the Doom
// Classic WADs.
AddIWADPath(env, "/games/doom3bfg/base/wads");
+
+ env = "/usr/local/share:/usr/share";
+ AddIWADPath(env, "/games/doom");
+ AddIWADPath(env, "/doom");
}
#ifndef __MACOSX__