From f5c86819abb67534fe80706b8ed2e5ed824ec8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Farkas=20P=C3=A9ter?= Date: Fri, 16 Aug 2024 00:42:14 +0200 Subject: [PATCH] Added GOG path for Doom + Doom II --- src/win32/i_steam.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/win32/i_steam.cpp b/src/win32/i_steam.cpp index 07e7f2a026..2cc76ab663 100644 --- a/src/win32/i_steam.cpp +++ b/src/win32/i_steam.cpp @@ -183,7 +183,6 @@ static bool QueryPathKey(HKEY key, const wchar_t *keypath, const wchar_t *valnam TArray I_GetGogPaths() { - // TODO Does the 2024 Update affect GOG version? TArray result; FString path; std::wstring gamepath; @@ -226,6 +225,13 @@ TArray I_GetGogPaths() result.Push(path + "/DOOM II_Data/StreamingAssets"); // in a subdirectory } + // Look for Doom + Doom II + gamepath = gogregistrypath + L"\\1413291984"; + if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) + { + result.Push(path); // directly in install folder + } + // Look for Final Doom gamepath = gogregistrypath + L"\\1435848742"; if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path)) @@ -355,7 +361,6 @@ TArray I_GetBethesdaPath() TArray result; static const char* const bethesda_dirs[] = { - // TODO Does the 2024 Update affect Bethesda Launcher? "DOOM_Classic_2019/base", "DOOM_Classic_2019/rerelease/DOOM_Data/StreamingAssets", "DOOM_II_Classic_2019/base",