mirror of https://github.com/axmolengine/axmol.git
do it atomically;
This commit is contained in:
parent
91ddfe7382
commit
9a04eee8d1
|
@ -318,8 +318,8 @@ bool CCFileUtilsIOS::writeToFile(CCDictionary *dict, const std::string &fullPath
|
|||
}
|
||||
|
||||
NSString *file = [NSString stringWithUTF8String:fullPath.c_str()];
|
||||
// no one else will write this file
|
||||
[nsDict writeToFile:file atomically:NO];
|
||||
// do it atomically
|
||||
[nsDict writeToFile:file atomically:YES];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue