From 732a11f74cb693ac7815894c47b4a48ccd3ef362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E7=BA=BF=E7=81=B5=7CDeal?= Date: Mon, 31 Oct 2022 08:12:06 +0800 Subject: [PATCH] Update CCFileUtils-apple.mm --- core/platform/apple/CCFileUtils-apple.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/platform/apple/CCFileUtils-apple.mm b/core/platform/apple/CCFileUtils-apple.mm index a92eaf5f23..06ba340653 100644 --- a/core/platform/apple/CCFileUtils-apple.mm +++ b/core/platform/apple/CCFileUtils-apple.mm @@ -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] == '/') {