mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 06:10:42 +00:00
- Add autodetection for GOG's releases of Heretic and Hexen. (#1259)
This commit is contained in:
parent
49b289d54e
commit
c59c2431ea
1 changed files with 21 additions and 0 deletions
|
@ -175,6 +175,27 @@ TArray<FString> I_GetGogPaths()
|
||||||
result.Push(path); // directly in install folder
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue