From c59c2431eaddccb8158953e6469857dbf9814777 Mon Sep 17 00:00:00 2001 From: dondiego Date: Wed, 30 Dec 2020 03:25:20 +0100 Subject: [PATCH] - Add autodetection for GOG's releases of Heretic and Hexen. (#1259) --- src/win32/i_steam.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/win32/i_steam.cpp b/src/win32/i_steam.cpp index 5a4ee90efb..7850a2cb29 100644 --- a/src/win32/i_steam.cpp +++ b/src/win32/i_steam.cpp @@ -175,6 +175,27 @@ TArray I_GetGogPaths() result.Push(path); // directly in install folder } + // Look for Heretic: SOTSR + gamepath = gogregistrypath + L"\\1290366318"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path); // directly in install folder + } + + // Look for Hexen: Beyond Heretic + gamepath = gogregistrypath + L"\\1247951670"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path); // directly in install folder + } + + // Look for Hexen: Death Kings + gamepath = gogregistrypath + L"\\1983497091"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path); // directly in install folder + } + return result; }