mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1121 from minggo/iss1383_userdefault_path
fixed #1383:save UserDefault.xml to Library/caches
This commit is contained in:
commit
9374767fae
|
@ -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("/");
|
||||
|
|
Loading…
Reference in New Issue