mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-13 05:41:10 +00:00
- Add autodetection for GOG's releases of Heretic and Hexen.
This commit is contained in:
parent
b08ef59fff
commit
2bd2320d82
1 changed files with 21 additions and 0 deletions
|
@ -1116,6 +1116,27 @@ TArray<FString> 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue