diff --git a/native/cocos/platform/CCFileUtils.cpp b/native/cocos/platform/CCFileUtils.cpp index 6dcc3f6829..ee4dc8d7a7 100644 --- a/native/cocos/platform/CCFileUtils.cpp +++ b/native/cocos/platform/CCFileUtils.cpp @@ -939,6 +939,8 @@ void FileUtils::setDefaultResourceRootPath(const std::string& resRootPath) else newSearchPathArray.push_back(iter.substr(tmp)); } + else + newSearchPathArray.push_back(iter); } _defaultResRootPath = resRootPath;