mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Change path to look for game specific config files
Old path: $XDG_CONFIG_HOME/lgogdownloader/gamename.conf New path: $XDG_CONFIG_HOME/lgogdownloader/gamespecific/gamename.conf
This commit is contained in:
parent
374453b806
commit
64cae133cf
@ -67,7 +67,7 @@ Allows user to specify individual files that should not be downloaded or mention
|
||||
It doesn't have to exist, but if it does exist, it must be readable to lgogdownloader.
|
||||
|
||||
.TP
|
||||
\fI$XDG_CONFIG_HOME/lgogdownloader/gamename.conf\fP
|
||||
\fI$XDG_CONFIG_HOME/lgogdownloader/gamespecific/gamename.conf\fP
|
||||
JSON formatted file. Sets game specific settings for \fBgamename\fP.
|
||||
.br
|
||||
Allowed settings are \fBlanguage\fP, \fBplatform\fP, \fBdlc\fP and \fBignore-dlc-count\fP.
|
||||
|
@ -231,11 +231,11 @@ int Util::getGameSpecificConfig(std::string gamename, gameSpecificConfig* conf,
|
||||
{
|
||||
char *xdghome = getenv("XDG_CONFIG_HOME");
|
||||
if (xdghome)
|
||||
directory = (std::string)xdghome + "/lgogdownloader";
|
||||
directory = (std::string)xdghome + "/lgogdownloader/gamespecific";
|
||||
else
|
||||
{
|
||||
std::string home = (std::string)getenv("HOME");
|
||||
directory = home + "/.config/lgogdownloader";
|
||||
directory = home + "/.config/lgogdownloader/gamespecific";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user