refactor: removed some output message
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user