foxygit / doom Log in
commit 49ce3adaa76e2c80e264a640a5d812a3898df106
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Mon Dec 21 22:50:21 2020 -0800
Commit:     GitHub <noreply@github.com>
CommitDate: Tue Dec 22 07:50:21 2020 +0100

    iwad: Support autoloading GOG.com releases of Heretic and Hexen (#1338)

    Fixes #1337
---
 src/d_iwad.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/src/d_iwad.c b/src/d_iwad.c
index 91835d11..9dd4d1c1 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -208,6 +208,30 @@ static registry_value_t root_path_keys[] =
         SOFTWARE_KEY "\\GOG.com\\Games\\1432899949",
         "PATH",
     },
+
+    // Heretic
+
+    {
+        HKEY_LOCAL_MACHINE,
+        SOFTWARE_KEY "\\GOG.com\\Games\\1290366318",
+        "PATH",
+    },
+
+    // Hexen
+
+    {
+        HKEY_LOCAL_MACHINE,
+        SOFTWARE_KEY "\\GOG.com\\Games\\1247951670",
+        "PATH",
+    },
+
+    // Hexen: Deathkings of a Dark Citadel
+
+    {
+        HKEY_LOCAL_MACHINE,
+        SOFTWARE_KEY "\\GOG.com\\Games\\1983497091",
+        "PATH",
+    },
 };

 // Subdirectories of the above install path, where IWADs are installed.