mirror of https://github.com/axmolengine/axmol.git
should use full path to check directory
This commit is contained in:
parent
ed955cbe1d
commit
6b9c76fd93
|
@ -1008,7 +1008,7 @@ bool FileUtils::isDirectoryExist(const std::string& dirPath) const
|
|||
for (const auto& resolutionIt : _searchResolutionsOrderArray)
|
||||
{
|
||||
// searchPath + file_path + resourceDirectory
|
||||
fullpath = searchIt + dirPath + resolutionIt;
|
||||
fullpath = fullPathForFilename(searchIt + dirPath + resolutionIt);
|
||||
if (isDirectoryExistInternal(fullpath))
|
||||
{
|
||||
_fullPathCache.insert(std::make_pair(dirPath, fullpath));
|
||||
|
|
Loading…
Reference in New Issue