foxygit / doom Log in
commit 50fd94fa5ff1b6a468880ca63c64e506d6de295f
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Thu Feb 2 07:30:43 2017 -0800
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Thu Feb 2 07:30:43 2017 -0800

    d_iwad: Find Doom 3: BFG IWADs on Unix systems.

    This is one half of issue #459.
---
 src/d_iwad.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/d_iwad.c b/src/d_iwad.c
index ef67f1c6..32773fb9 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -650,6 +650,11 @@ 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");
+
+    // The convention set by RBDOOM-3-BFG is to install Doom 3: BFG
+    // Edition into this directory, under which includes the Doom
+    // Classic WADs.
+    AddIWADPath(env, "/games/doom3bfg/base/wads");
 }
 #endif