mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
Add support for the GOG releases of the Unity versions of Doom and Doom II.
This commit is contained in:
parent
0eae1b9be2
commit
f27acfa6b2
1 changed files with 14 additions and 0 deletions
|
@ -144,6 +144,13 @@ TArray<FString> I_GetGogPaths()
|
||||||
result.Push(path); // directly in install folder
|
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
|
// Look for Doom II
|
||||||
gamepath = gogregistrypath + L"\\1435848814";
|
gamepath = gogregistrypath + L"\\1435848814";
|
||||||
if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))
|
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
|
// 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
|
// Look for Final Doom
|
||||||
gamepath = gogregistrypath + L"\\1435848742";
|
gamepath = gogregistrypath + L"\\1435848742";
|
||||||
if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))
|
if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))
|
||||||
|
|
Loading…
Reference in a new issue