mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-23 19:31:29 +00:00
Added GOG path for Doom + Doom II
This commit is contained in:
parent
855b7fc026
commit
f5c86819ab
1 changed files with 7 additions and 2 deletions
|
@ -183,7 +183,6 @@ static bool QueryPathKey(HKEY key, const wchar_t *keypath, const wchar_t *valnam
|
|||
|
||||
TArray<FString> I_GetGogPaths()
|
||||
{
|
||||
// TODO Does the 2024 Update affect GOG version?
|
||||
TArray<FString> result;
|
||||
FString path;
|
||||
std::wstring gamepath;
|
||||
|
@ -226,6 +225,13 @@ TArray<FString> I_GetGogPaths()
|
|||
result.Push(path + "/DOOM II_Data/StreamingAssets"); // in a subdirectory
|
||||
}
|
||||
|
||||
// Look for Doom + Doom II
|
||||
gamepath = gogregistrypath + L"\\1413291984";
|
||||
if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))
|
||||
{
|
||||
result.Push(path); // directly in install folder
|
||||
}
|
||||
|
||||
// Look for Final Doom
|
||||
gamepath = gogregistrypath + L"\\1435848742";
|
||||
if (QueryPathKey(HKEY_LOCAL_MACHINE, gamepath.c_str(), L"Path", path))
|
||||
|
@ -355,7 +361,6 @@ TArray<FString> I_GetBethesdaPath()
|
|||
TArray<FString> result;
|
||||
static const char* const bethesda_dirs[] =
|
||||
{
|
||||
// TODO Does the 2024 Update affect Bethesda Launcher?
|
||||
"DOOM_Classic_2019/base",
|
||||
"DOOM_Classic_2019/rerelease/DOOM_Data/StreamingAssets",
|
||||
"DOOM_II_Classic_2019/base",
|
||||
|
|
Loading…
Reference in a new issue