mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Don't print file size or hash for missing files in --status output
This commit is contained in:
parent
dabfcfc180
commit
19815109c3
@ -1902,7 +1902,15 @@ void Downloader::checkStatus()
|
|||||||
|
|
||||||
void Downloader::addStatusLine(const std::string& statusCode, const std::string& gamename, const std::string& filepath, const uintmax_t& filesize, const std::string& localHash)
|
void Downloader::addStatusLine(const std::string& statusCode, const std::string& gamename, const std::string& filepath, const uintmax_t& filesize, const std::string& localHash)
|
||||||
{
|
{
|
||||||
std::cout << statusCode << " " << gamename << " " << filepath << " " << filesize << " " << localHash << std::endl;
|
std::cout << statusCode << " " << gamename << " " << filepath;
|
||||||
|
|
||||||
|
if (filesize > 0)
|
||||||
|
std::cout << " " << filesize;
|
||||||
|
|
||||||
|
if (!localHash.empty())
|
||||||
|
std::cout << " " << localHash;
|
||||||
|
|
||||||
|
std::cout << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user