我注意到 CCFileUtils::getWriteablePath() 返回的是 CacheDirectory,而不是 DocumentDirecotry,它假设根据注释。这样做有什么正当理由吗?还是只是一个错误?这是来自 CCFileUtils.mm 的代码
std::string CCFileUtils::getWriteablePath()
{
// save to document folder
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NsUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
std::string strRet = [documentsDirectory UTF8String];
strRet.append("/");
return strRet;
}