Add support for the GOG releases of the Unity versions of Doom and Doom II.

This commit is contained in:
Yarn366 2022-08-19 00:15:29 -04:00 committed by Christoph Oelckers
parent 0eae1b9be2
commit f27acfa6b2
1 changed files with 14 additions and 0 deletions

View File

@ -144,6 +144,13 @@ TArray<FString> 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<FString> 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))