From 0a2570fec7458e73e52baa03550090d41d0daf6b Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 24 Jul 2012 11:34:20 +0800 Subject: [PATCH] fixed #1383:save UserDefault.xml to Library/caches --- cocos2dx/platform/ios/CCFileUtils.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/platform/ios/CCFileUtils.mm b/cocos2dx/platform/ios/CCFileUtils.mm index 7a296d8f70..744a4cce32 100644 --- a/cocos2dx/platform/ios/CCFileUtils.mm +++ b/cocos2dx/platform/ios/CCFileUtils.mm @@ -490,7 +490,7 @@ bool CCFileUtils::isPopupNotify() 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("/");