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()];
|
NSString *file = [NSString stringWithUTF8String:fullPath.c_str()];
|
||||||
// no one else will write this file
|
// do it atomically
|
||||||
[nsDict writeToFile:file atomically:NO];
|
[nsDict writeToFile:file atomically:YES];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue