mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
fixed chinese path bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user