issue #2521: Updating comments where searchs full path.

This commit is contained in:
James Chen 2013-08-12 11:06:51 +08:00
parent fb6f97de95
commit dbd58b6aa7
1 changed files with 2 additions and 2 deletions

View File

@ -636,7 +636,7 @@ std::string FileUtils::fullPathForFilename(const char* filename)
for (auto resOrderIter = _searchResolutionsOrderArray.begin(); for (auto resOrderIter = _searchResolutionsOrderArray.begin();
resOrderIter != _searchResolutionsOrderArray.end(); ++resOrderIter) { resOrderIter != _searchResolutionsOrderArray.end(); ++resOrderIter) {
// CCLOG("\n\nSEARCHING: %s, %s, %s", newFilename.c_str(), resOrderIter->c_str(), searchPathsIter->c_str()); // CCLOG("SEARCHING: %s\n", std::string(*searchPathsIter + *resOrderIter + newFilename).c_str() );
fullpath = this->getPathForFilename(newFilename, *resOrderIter, *searchPathsIter); fullpath = this->getPathForFilename(newFilename, *resOrderIter, *searchPathsIter);
@ -644,7 +644,7 @@ std::string FileUtils::fullPathForFilename(const char* filename)
{ {
// Using the filename passed in as key. // Using the filename passed in as key.
_fullPathCache.insert(std::pair<std::string, std::string>(filename, fullpath)); _fullPathCache.insert(std::pair<std::string, std::string>(filename, fullpath));
// CCLOG("Returning path: %s", fullpath.c_str()); // CCLOG("Returning path: %s\n", fullpath.c_str());
return fullpath; return fullpath;
} }
} }