Yet another fix for addons :( Now installation of addons might

work as well as deleting them.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2013-03-27 21:52:40 +00:00
parent 9dfb6c4ccb
commit ecfdae57f8
3 changed files with 4 additions and 9 deletions

View File

@@ -379,8 +379,7 @@ int AddonsManager::getAddonIndex(const std::string &id) const
bool AddonsManager::install(const Addon &addon)
{
bool success=true;
const std::string &id = addon.getId();
file_manager->checkAndCreateDirForAddons(id, addon.getTypeDirectory());
file_manager->checkAndCreateDirForAddons(addon.getDataDir());
//extract the zip in the addons folder called like the addons name
std::string base_name = StringUtils::getBasename(addon.getZipFileName());