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:
@@ -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),
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user