mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Merge pull request #5379 from IvanSavenko/chronicle_install_fix
Fixes Chronicles installation on Windows with non-ascii chars in path
This commit is contained in:
@@ -225,7 +225,7 @@ void CArchiveLoader::extractToFolder(const std::string & outputSubFolder, CInput
|
|||||||
boost::filesystem::path extractedFilePath = createExtractedFilePath(outputSubFolder, entry.name, absolute);
|
boost::filesystem::path extractedFilePath = createExtractedFilePath(outputSubFolder, entry.name, absolute);
|
||||||
|
|
||||||
// writeToOutputFile
|
// 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.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
out.write(reinterpret_cast<char *>(data.data()), entry.fullSize);
|
out.write(reinterpret_cast<char *>(data.data()), entry.fullSize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user