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:
Sude 2015-08-12 16:53:25 +03:00
parent 374453b806
commit 64cae133cf
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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";
}
}