1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

- support for Chinese fonts (GBK 2-byte encoding)

- fixes #1446
This commit is contained in:
Ivan Savenko
2013-09-08 16:49:23 +00:00
parent 42879225f0
commit e13dc872e0
7 changed files with 195 additions and 55 deletions

View File

@ -688,7 +688,7 @@ void processCommand(const std::string &message)
auto data = CResourceHandler::get()->load(ResourceID(URI))->readAll();
boost::filesystem::create_directories(fullPath.substr(0, fullPath.find_last_of("/")));
std::ofstream outFile(outPath + outName);
std::ofstream outFile(outPath + outName, std::ofstream::binary);
outFile.write((char*)data.first.get(), data.second);
}
else