NSCachesDirectory for the getWritablePath?

I found that since cocos2d-x 2.0.2, function “std::string CCFileUtils::getWriteablePath()” returned “NSCachesDirectory” in file(CCFileUtils.mm).
The files written in this directory would be cleared each 3 days.

I agree! This is a bug on the gles20 branch:
https://github.com/cocos2d/cocos2d-x/blob/gles20/cocos2dx/platform/ios/CCFileUtils.mm

It is fixed/correct on the master branch:
http://www.cocos2d-x.org/projects/native/repository/revisions/master/entry/cocos2dx/platform/ios/CCFileUtils_ios.mm#L490

Can this be fixed for upcoming zip releases? Are zip releases from the gles20 branch?

Thanks! :slight_smile:

Do you need a patch for this, or are the source code links good enough? It’s a one-line change.