mirror of https://github.com/axmolengine/axmol.git
Merge: 58403292cd
bfd1709ab7
Merge pull request #108 from halx99/master Optimzie writeStringToFile
This commit is contained in:
parent
8f3c82a287
commit
44276b824a
|
@ -479,7 +479,7 @@ FileUtils::~FileUtils()
|
|||
|
||||
bool FileUtils::writeStringToFile(const std::string& dataStr, const std::string& fullPath) const
|
||||
{
|
||||
return FileUtils::writeBinaryToFile(dataStr.c_str(), dataStr.length(), fullPath);
|
||||
return FileUtils::writeBinaryToFile(dataStr.c_str(), dataStr.size(), fullPath);
|
||||
}
|
||||
|
||||
void FileUtils::writeStringToFile(std::string dataStr, const std::string& fullPath, std::function<void(bool)> callback) const
|
||||
|
|
Loading…
Reference in New Issue