From 897416eb4e7422f100ec623939aaa22ff3a8ff10 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Fri, 30 Jan 2015 11:12:35 +0800 Subject: [PATCH] cocos2d/cocos2d-js#1313: Remove dangerous code in AssetsManagerEx::setStoragePath --- extensions/assets-manager/AssetsManagerEx.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/extensions/assets-manager/AssetsManagerEx.cpp b/extensions/assets-manager/AssetsManagerEx.cpp index 1b6d7a660f..18798a1feb 100644 --- a/extensions/assets-manager/AssetsManagerEx.cpp +++ b/extensions/assets-manager/AssetsManagerEx.cpp @@ -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);