diff --git a/cocos/2d/platform/CCFileUtils.cpp b/cocos/2d/platform/CCFileUtils.cpp index 845739ccd3..f525ee99f6 100644 --- a/cocos/2d/platform/CCFileUtils.cpp +++ b/cocos/2d/platform/CCFileUtils.cpp @@ -742,7 +742,11 @@ void FileUtils::setSearchResolutionsOrder(const std::vector& search void FileUtils::addSearchResolutionsOrder(const std::string &order) { - _searchResolutionsOrderArray.push_back(order); + std::string resOrder = order; + if (!resOrder.empty() && resOrder[resOrder.length()-1] != '/') + resOrder.append("/"); + + _searchResolutionsOrderArray.push_back(resOrder); } const std::vector& FileUtils::getSearchResolutionsOrder()