NSCachesDirectory for the getWritablePath?

NSCachesDirectory for the getWritablePath?
0.0 0


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:

It is fixed/correct on the master branch:

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.