From 64cae133cfdd782469fd7c666b6024ecc393557b Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 12 Aug 2015 16:53:25 +0300 Subject: [PATCH] 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 --- man/lgogdownloader.supplemental.groff | 2 +- src/util.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/lgogdownloader.supplemental.groff b/man/lgogdownloader.supplemental.groff index 418e980..52e1735 100644 --- a/man/lgogdownloader.supplemental.groff +++ b/man/lgogdownloader.supplemental.groff @@ -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. diff --git a/src/util.cpp b/src/util.cpp index 1ee814b..05b41df 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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"; } }