From cb6050183bd1286008151d596a1f64ffc65080b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sun, 30 Oct 2022 23:33:34 +0100 Subject: [PATCH] =?UTF-8?q?Cambiado=20el=20=C3=BAltimo=20printf=20por=20st?= =?UTF-8?q?d::cout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/common/asset.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/common/asset.cpp b/source/common/asset.cpp index 2f9b926..b2718b6 100644 --- a/source/common/asset.cpp +++ b/source/common/asset.cpp @@ -104,8 +104,12 @@ bool Asset::checkFile(std::string path) SDL_RWclose(file); } - const std::string s = "Checking file %-" + std::to_string(longestName) + "s [" + result + "]\n"; - printf(s.c_str(), filename.c_str()); + std::cout.setf(std::ios::left, std::ios::adjustfield); + std::cout << "Checking file: "; + std::cout.width(longestName + 2); + std::cout.fill('.'); + std::cout << filename + " "; + std::cout << " [" + result + "]" << std::endl; return success; }