diff --git a/src/downloader.cpp b/src/downloader.cpp index c593a7c..cd8f5eb 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2303,8 +2303,7 @@ int Downloader::saveGameDetailsCache() } else { - Json::StyledStreamWriter jsonwriter; - jsonwriter.write(ofs, json); + ofs << json << std::endl; ofs.close(); } return res; @@ -3304,8 +3303,7 @@ void Downloader::saveGalaxyJSON() } else { - Json::StyledStreamWriter jsonwriter; - jsonwriter.write(ofs, Globals::galaxyConf.getJSON()); + ofs << Globals::galaxyConf.getJSON() << std::endl; ofs.close(); } if (!Globals::globalConfig.bRespectUmask)