Fixed incorrect kart display after installing a new kart
(still pretty much work in progress, so not recommended to use right now). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
503723967f
commit
76b595e303
@ -110,8 +110,13 @@ bool extract_zip(std::string from, std::string to)
|
||||
current_file = "";
|
||||
}
|
||||
}
|
||||
//remove the zip from the filesystem to save memory and avoid problem with a name conflict
|
||||
pfs->removeFileArchive(from.c_str());
|
||||
//remove the zip from the filesystem to save memory and avoid
|
||||
// problem with a name conflict. Note that we have to convert
|
||||
// the path using getAbsolutePath, otherwise windows name
|
||||
// will not be detected correctly (e.g. if from=c:\... the
|
||||
// stored filename will be c:/..., which then does not match
|
||||
// on removing it. getAbsolutePath will convert all \ to /.
|
||||
pfs->removeFileArchive(pfs->getAbsolutePath(from.c_str()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user