the global config path is not always $prefix/etc, so just define the whole path in the build system

This commit is contained in:
Sebastian Wick 2014-09-19 20:23:39 +02:00
parent f46da271d7
commit 41094a8641
2 changed files with 8 additions and 3 deletions

View file

@ -69,7 +69,7 @@ boost::filesystem::path LinuxPath::getCachePath() const
boost::filesystem::path LinuxPath::getGlobalConfigPath() const
{
boost::filesystem::path globalPath(INSTALL_PREFIX "/etc/");
boost::filesystem::path globalPath(GLOBAL_CONFIG_PATH);
return globalPath / mName;
}
@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const
boost::filesystem::path LinuxPath::getGlobalDataPath() const
{
boost::filesystem::path globalDataPath(INSTALL_PREFIX "/share/games/");
boost::filesystem::path globalDataPath(GLOBAL_DATA_PATH);
return globalDataPath / mName;
}