From 1bc8fe7312c63030a50c9cc4c64658102c1a9105 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Fri, 25 Aug 2017 12:17:27 -0700 Subject: [PATCH] Add GOG path for Doom 3: BFG Edition --- src/win32/i_system.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/win32/i_system.cpp b/src/win32/i_system.cpp index 08c4646c1..2f1270697 100644 --- a/src/win32/i_system.cpp +++ b/src/win32/i_system.cpp @@ -1655,6 +1655,13 @@ TArray I_GetGogPaths() result.Push(path + "/Plutonia"); } + // Look for Doom 3: BFG Edition + gamepath = gogregistrypath + "\\1135892318"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.GetChars(), "Path", path)) + { + result.Push(path + "/base/wads"); // in a subdirectory + } + // Look for Strife: Veteran Edition gamepath = gogregistrypath + "\\1432899949"; if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.GetChars(), "Path", path))