From f27acfa6b2d67b0e8a98185740889e5b84f99d54 Mon Sep 17 00:00:00 2001 From: Yarn366 <12212657+Yarn366@users.noreply.github.com> Date: Fri, 19 Aug 2022 00:15:29 -0400 Subject: [PATCH] Add support for the GOG releases of the Unity versions of Doom and Doom II. --- src/win32/i_steam.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/win32/i_steam.cpp b/src/win32/i_steam.cpp index 5dc5276a69..056b59364b 100644 --- a/src/win32/i_steam.cpp +++ b/src/win32/i_steam.cpp @@ -144,6 +144,13 @@ TArray I_GetGogPaths() result.Push(path); // directly in install folder } + // Look for Doom I Enhanced + gamepath = gogregistrypath + L"\\2015545325"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path + "/DOOM_Data/StreamingAssets"); // in a subdirectory + } + // Look for Doom II gamepath = gogregistrypath + L"\\1435848814"; if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) @@ -152,6 +159,13 @@ TArray I_GetGogPaths() // If direct support for the Master Levels is ever added, they are in path + /master/wads } + // Look for Doom II Enhanced + gamepath = gogregistrypath + L"\\1426071866"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path + "/DOOM II_Data/StreamingAssets"); // in a subdirectory + } + // Look for Final Doom gamepath = gogregistrypath + L"\\1435848742"; if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))