A dirty hack to add addons direcotory support in kart loader and a fix for addons path

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
xapantu
2010-07-01 12:15:57 +00:00
parent 4669b7075b
commit b4d372489b
2 changed files with 5 additions and 1 deletions

View File

@@ -312,7 +312,7 @@ void Addons::Install()
{
std::string dest_file =file_manager->getAddonsDir() + "/" + "data" + "/" +
this->m_addons_list[this->index].type + "/";
this->m_addons_list[this->index].type + "s/";
//download of the addons file
download(std::string("file/" + this->m_addons_list[this->index].file),

View File

@@ -549,6 +549,10 @@ void initRest()
// Consistency check for challenges, and enable all challenges
// that have all prerequisites fulfilled
grand_prix_manager->checkConsistency();
#ifdef ADDONS_MANAGER
KartPropertiesManager::addKartSearchDir(file_manager->getAddonsDir() + "/data/karts/");
std::cout << "addons dir:" << file_manager->getAddonsDir() + "/data/karts/" << std::endl;
#endif
}
//=============================================================================