From 69c3f314cbb3954f80adec498e6e3d9c3ddbda89 Mon Sep 17 00:00:00 2001 From: ahcorde Date: Tue, 30 Mar 2021 18:21:06 +0200 Subject: [PATCH] Fixed windows download Signed-off-by: ahcorde --- src/LocalCache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LocalCache.cc b/src/LocalCache.cc index 31ccefa2..68fdefad 100644 --- a/src/LocalCache.cc +++ b/src/LocalCache.cc @@ -409,7 +409,7 @@ bool LocalCache::SaveModel( } auto zipFile = common::joinPaths(modelVersionedDir, _id.Name() + ".zip"); - std::ofstream ofs(zipFile, std::ofstream::out); + std::ofstream ofs(zipFile, std::ofstream::out | std::ofstream::binary); ofs << _data; ofs.close(); @@ -757,7 +757,7 @@ bool LocalCache::SaveWorld( } auto zipFile = common::joinPaths(worldVersionedDir, _id.Name() + ".zip"); - std::ofstream ofs(zipFile, std::ofstream::out); + std::ofstream ofs(zipFile, std::ofstream::out | std::ofstream::binary); ofs << _data; ofs.close();