Update CCFileUtils-apple.mm

This commit is contained in:
一线灵|Deal 2022-10-31 08:12:06 +08:00 committed by GitHub
parent b23c3ca38b
commit 732a11f74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -172,11 +172,10 @@ bool FileUtilsApple::removeDirectory(std::string_view path) const
}
std::string FileUtilsApple::getPathForDirectory(std::string_view dir,
std::string_view resolutionDiretory,
std::string_view searchPath) const
{
std::string path{searchPath};
path.append(resolutionDiretory).append(dir);
path.append(dir);
if (!path.empty() && path[path.length() - 1] == '/')
{