2013-05-02 09:58:35 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2013-05-02 09:45:54.544886176 +0200
|
|
|
|
Upstream: maybe - this patch is quite specific to openSUSE
|
|
|
|
|
2015-11-07 11:28:03 +01:00
|
|
|
Make sure we always scan /usr paths for IWADs too, even if
|
|
|
|
XDG_DATA_DIRS is set.
|
|
|
|
|
2013-05-02 09:58:35 +02:00
|
|
|
prboom-plus and doomsday (in openSUSE) look in /usr/share/doom for
|
|
|
|
IWADs, and so should chocolate-doom.
|
|
|
|
|
2013-05-02 09:56:27 +02:00
|
|
|
---
|
2015-11-07 11:28:03 +01:00
|
|
|
src/d_iwad.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
2013-05-02 09:56:27 +02:00
|
|
|
|
2024-09-10 10:23:47 +02:00
|
|
|
Index: chocolate-doom-chocolate-doom-3.1.0/src/d_iwad.c
|
2013-05-02 09:56:27 +02:00
|
|
|
===================================================================
|
2024-09-10 10:23:47 +02:00
|
|
|
--- 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)
|
2018-01-10 12:58:45 +01:00
|
|
|
// Edition into this directory, under which includes the Doom
|
|
|
|
// Classic WADs.
|
|
|
|
AddIWADPath(env, "/games/doom3bfg/base/wads");
|
2015-11-07 11:28:03 +01:00
|
|
|
+
|
|
|
|
+ env = "/usr/local/share:/usr/share";
|
|
|
|
+ AddIWADPath(env, "/games/doom");
|
|
|
|
+ AddIWADPath(env, "/doom");
|
|
|
|
}
|
2013-05-02 09:56:27 +02:00
|
|
|
|
2024-09-10 10:23:47 +02:00
|
|
|
#ifndef __MACOSX__
|