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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user