From 74ce17a007c8f385f337c3bad315e2da4869c760 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sun, 14 Nov 2021 10:39:23 +0100 Subject: [PATCH] refactor: removed some output message --- src/misc/Updater.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/misc/Updater.cpp b/src/misc/Updater.cpp index 5debf1b..7616ba5 100644 --- a/src/misc/Updater.cpp +++ b/src/misc/Updater.cpp @@ -19,6 +19,7 @@ bool Updater::checkUpdate() { httplib::Client client("thesims.freeboxos.fr", 30000); if (auto res = client.Head(newFileUrl.c_str())) { + std::uint32_t distantFileSize = std::stol(res.value().get_header_value("Content-Length")); std::uint32_t localFileSize = getLocalFileSize(); @@ -71,7 +72,6 @@ std::string Updater::getLocalFilePath() { GetModuleFileName(nullptr, filePathBuffer, sizeof(filePathBuffer)); std::string filePath = filePathBuffer; - std::cout << filePath << std::endl; return filePath; #endif return ""; @@ -111,8 +111,6 @@ void Updater::removeOldFile(){ bool Updater::writeFile() { if (m_FileWrited || !m_DownloadComplete) return false; - std::cout << m_FileBuffer.GetSize() << std::endl; - if(!m_FileBuffer.WriteFile(getLocalFilePath() + "_recent")) return false;