fixed chinese path bug

This commit is contained in:
hej
2017-09-06 14:01:47 +08:00
parent 38581826f2
commit 198b5dfd50
@@ -610,7 +610,8 @@ void Manifest::saveToFile(const std::string &filepath)
rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buffer);
_json.Accept(writer);
std::ofstream output(filepath, std::ofstream::out);
std::ofstream output(FileUtils::getInstance()->getSuitableFOpen(filepath), std::ofstream::out);
if(!output.bad())
output << buffer.GetString() << std::endl;
}