- Add autodetection for GOG's releases of Heretic and Hexen. (#1259)

This commit is contained in:
dondiego 2020-12-30 03:25:20 +01:00 committed by GitHub
parent 49b289d54e
commit c59c2431ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,6 +175,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;
}