diff --git a/cocos/platform/CCFileUtils.cpp b/cocos/platform/CCFileUtils.cpp index 7145e3b3cc..a6940f6fe0 100644 --- a/cocos/platform/CCFileUtils.cpp +++ b/cocos/platform/CCFileUtils.cpp @@ -779,9 +779,8 @@ std::string FileUtils::fullPathForFilename(const std::string &filename) CCLOG("cocos2d: fullPathForFilename: No file found at %s. Possible missing file.", filename.c_str()); } - // FIXME: Should it return nullptr ? or an empty string ? - // The file wasn't found, return the file name passed in. - return filename; + // The file wasn't found, return empty string. + return ""; } std::string FileUtils::fullPathFromRelativeFile(const std::string &filename, const std::string &relativeFile)