Added 'addons' subdirectory to linux addons directory. This allows later
if necessary to have different versions of addons directory (which is what Windows and Macs already support). NOTE for linux users: this means that currently installed addons will not be found anymore. I would recommend to delete existing files in .local/share/supertuxkart. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
feb31d65dc
commit
4fee01b72c
@ -573,10 +573,18 @@ void FileManager::checkAndCreateAddonsDir()
|
||||
}
|
||||
}
|
||||
|
||||
const std::string CONFIGDIR("supertuxkart");
|
||||
|
||||
m_addons_dir += "/";
|
||||
m_addons_dir += CONFIGDIR;
|
||||
m_addons_dir += "/supertuxkart":
|
||||
if(!checkAndCreateDirectory(m_config_dir))
|
||||
{
|
||||
// If $HOME/.config can not be created:
|
||||
fprintf(stderr,
|
||||
"Can't create dir '%s', falling back to use '%s'.\n",
|
||||
m_config_dir.c_str(), getenv("HOME"));
|
||||
m_addons_dir = getenv("HOME");
|
||||
m_addons_dir += ".";
|
||||
}
|
||||
m_addons_dir += "/addons";
|
||||
|
||||
#endif
|
||||
|
||||
if(!checkAndCreateDirectory(m_addons_dir))
|
||||
|
Loading…
Reference in New Issue
Block a user