Merge pull request #1121 from minggo/iss1383_userdefault_path

fixed #1383:save UserDefault.xml to Library/caches
This commit is contained in:
minggo 2012-07-23 20:36:14 -07:00
commit 9374767fae
1 changed files with 1 additions and 1 deletions

View File

@ -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("/");