mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-05-07 01:21:03 +00:00
- Added paths for all games on Steam for Linux since they now offer the ability to download all games for Proton/Wine.
- Check ~/.steam on Linux for the config since either they moved it at some point or my setup changed and that's where it is for me now.
This commit is contained in:
parent
4d3249496a
commit
aaee655eba
1 changed files with 14 additions and 8 deletions
|
@ -153,13 +153,13 @@ static struct SteamAppInfo
|
||||||
const int AppID;
|
const int AppID;
|
||||||
} AppInfo[] =
|
} AppInfo[] =
|
||||||
{
|
{
|
||||||
/*{"doom 2/base", 2300},
|
{"Doom 2/base", 2300},
|
||||||
{"final doom/base", 2290},
|
{"Final Doom/base", 2290},
|
||||||
{"heretic shadow of the serpent riders/base", 2390},
|
{"Heretic Shadow of the Serpent Riders/base", 2390},
|
||||||
{"hexen/base", 2360},
|
{"Hexen/base", 2360},
|
||||||
{"hexen deathkings of the dark citadel/base", 2370},
|
{"Hexen Deathkings of the Dark Citadel/base", 2370},
|
||||||
{"ultimate doom/base", 2280},
|
{"Ultimate Doom/base", 2280},
|
||||||
{"DOOM 3 BFG Edition/base/wads", 208200},*/
|
{"DOOM 3 BFG Edition/base/wads", 208200},
|
||||||
{"Strife", 317040}
|
{"Strife", 317040}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -190,7 +190,13 @@ TArray<FString> I_GetSteamPath()
|
||||||
if(home != NULL && *home != '\0')
|
if(home != NULL && *home != '\0')
|
||||||
{
|
{
|
||||||
FString regPath;
|
FString regPath;
|
||||||
regPath.Format("%s/.local/share/Steam/config/config.vdf", home);
|
regPath.Format("%s/.steam/config/config.vdf", home);
|
||||||
|
// [BL] The config seems to have moved from the more modern .local to
|
||||||
|
// .steam at some point. Not sure if it's just my setup so I guess we
|
||||||
|
// can fall back on it?
|
||||||
|
if(!FileExists(regPath))
|
||||||
|
regPath.Format("%s/.local/share/Steam/config/config.vdf", home);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SteamInstallFolders = ParseSteamRegistry(regPath);
|
SteamInstallFolders = ParseSteamRegistry(regPath);
|
||||||
|
|
Loading…
Reference in a new issue