1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00

Fixes Chronicles installation on Windows with non-ascii chars in path

This commit is contained in:
Ivan Savenko
2025-02-04 14:57:26 +00:00
parent 7e1ce095a1
commit b2c340158d

View File

@ -225,7 +225,7 @@ void CArchiveLoader::extractToFolder(const std::string & outputSubFolder, CInput
boost::filesystem::path extractedFilePath = createExtractedFilePath(outputSubFolder, entry.name, absolute);
// writeToOutputFile
std::ofstream out(extractedFilePath.string(), std::ofstream::binary);
std::ofstream out(extractedFilePath.c_str(), std::ofstream::binary);
out.exceptions(std::ifstream::failbit | std::ifstream::badbit);
out.write(reinterpret_cast<char *>(data.data()), entry.fullSize);