Fixed #274: unzipping of addons file would actually copy
data/testures/materials.xml instead of materials.xml from the zip file. To fix any already downloaded addon, they have to be uninstalled and installed from scratch again. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
058a2ca870
commit
a3c9eac53b
@ -80,8 +80,8 @@ bool extract_zip(const std::string &from, const std::string &to)
|
||||
if(current_file[0]=='.') continue;
|
||||
const std::string base = StringUtils::getBasename(current_file);
|
||||
|
||||
IReadFile* src_file =
|
||||
file_system->createAndOpenFile(current_file.c_str());
|
||||
IReadFile* src_file =
|
||||
zip_archive->createAndOpenFile(current_file.c_str());
|
||||
if(!src_file)
|
||||
{
|
||||
printf("[addons] Can't read file '%s'.\n", current_file.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user