mirror of https://github.com/axmolengine/axmol.git
cocos2d/cocos2d-js#1313: Remove dangerous code in AssetsManagerEx::setStoragePath
This commit is contained in:
parent
8efbafd09e
commit
897416eb4e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue