Skip to content

Commit

Permalink
fixed #1383:save UserDefault.xml to Library/caches
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Jul 24, 2012
1 parent 00955d1 commit 411e184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2dx/platform/ios/CCFileUtils.mm
Expand Up @@ -490,7 +490,7 @@ bool fileExistsAtPath(const char *cpath, const char *csuffix)
std::string CCFileUtils::getWriteablePath()
{
// save to document folder
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
std::string strRet = [documentsDirectory UTF8String];
strRet.append("/");
Expand Down

0 comments on commit 411e184

Please sign in to comment.