foxygit / doom Log in
commit 83a71dd850fb02e571e2b5117f234395f8869a11
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Fri Aug 25 11:54:05 2017 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Fri Aug 25 11:54:05 2017 -0700

    d_iwad: Find the GOG install of Doom 3: BFG

    Ordered so that vanilla Doom II takes precedence, but Doom II BFG will
    be located and loaded before a Final Doom install.
---
 src/d_iwad.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/d_iwad.c b/src/d_iwad.c
index 32773fb9..d35ab1da 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -162,6 +162,14 @@ static registry_value_t root_path_keys[] =
         "PATH",
     },

+    // Doom 3: BFG Edition
+
+    {
+        HKEY_LOCAL_MACHINE,
+        SOFTWARE_KEY "\\GOG.com\\Games\\1135892318",
+        "PATH",
+    },
+
     // Final Doom

     {
@@ -181,9 +189,9 @@ static registry_value_t root_path_keys[] =
     // Strife: Veteran Edition

     {
-	HKEY_LOCAL_MACHINE,
-	SOFTWARE_KEY "\\GOG.com\\Games\\1432899949",
-	"PATH",
+        HKEY_LOCAL_MACHINE,
+        SOFTWARE_KEY "\\GOG.com\\Games\\1432899949",
+        "PATH",
     },
 };

@@ -197,6 +205,7 @@ static char *root_path_subdirs[] =
     "Ultimate Doom",
     "Plutonia",
     "TNT",
+    "base\\wads",
 };

 // Location where Steam is installed