From 97acec457bb0a569db3a351da67a0ccd7cbff52d Mon Sep 17 00:00:00 2001 From: u0u0 Date: Sun, 21 Jun 2020 21:52:03 +0800 Subject: [PATCH] Win32 fix for FileUtils::listFilesRecursively returning no results. https://github.com/cocos2d/cocos2d-x/pull/20518/ --- cocos/platform/win32/CCFileUtils-win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/platform/win32/CCFileUtils-win32.cpp b/cocos/platform/win32/CCFileUtils-win32.cpp index b829302..2349f3e 100644 --- a/cocos/platform/win32/CCFileUtils-win32.cpp +++ b/cocos/platform/win32/CCFileUtils-win32.cpp @@ -240,7 +240,7 @@ std::string FileUtilsWin32::getFullPathForFilenameWithinDirectory(const std::str void FileUtilsWin32::listFilesRecursively(const std::string& dirPath, std::vector *files) const { - std::string fullpath = fullPathForFilename(dirPath); + std::string fullpath = fullPathForDirectory(dirPath); if (isDirectoryExist(fullpath)) { tinydir_dir dir;