cocos2d/cocos2d-js#1313: Remove dangerous code in AssetsManagerEx::setStoragePath

This commit is contained in:
pandamicro 2015-01-30 11:12:35 +08:00
parent 8efbafd09e
commit 897416eb4e
1 changed files with 0 additions and 3 deletions

View File

@ -264,9 +264,6 @@ const std::string& AssetsManagerEx::getStoragePath() const
void AssetsManagerEx::setStoragePath(const std::string& storagePath)
{
if (_storagePath.size() > 0)
_fileUtils->removeDirectory(_storagePath);
_storagePath = storagePath;
adjustPath(_storagePath);
_fileUtils->createDirectory(_storagePath);