Added support for GOG paths

This works a bit differently from the Steam version, because each game
has its own registry keys and its own independent path.
This commit is contained in:
Gaerzi 2015-08-28 19:14:25 +02:00
commit 98f214ee66
3 changed files with 66 additions and 5 deletions

View file

@ -435,6 +435,11 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
}
}
}
TArray<FString> gog_paths = I_GetGogPaths();
for (i = 0; i < gog_paths.Size(); ++i)
{
CheckIWAD (gog_paths[i], &wads[0]);
}
TArray<FString> steam_path = I_GetSteamPath();
for (i = 0; i < steam_path.Size(); ++i)
{