diff options
| author | LC <mathew1800@gmail.com> | 2020-10-19 09:18:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-19 09:18:16 -0400 |
| commit | 0f5bf90013cd1358b3ccb2f22c09748e40a552f4 (patch) | |
| tree | f4fedfa6c797161388822c4b2d62235a9da4781b /Source/Core/DiscIO/WIABlob.cpp | |
| parent | c9b2fbb64b94c6b79958f5d69af8e7c891794a39 (diff) | |
| parent | cb14b65aad860a79f949fa1e6986cffeba5e3509 (diff) | |
Merge pull request #9150 from JosJuice/discio-fmt
DiscIO: Make use of fmt where applicable
Diffstat (limited to 'Source/Core/DiscIO/WIABlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/WIABlob.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index 999d3136ac..8b309267d1 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -16,6 +16,7 @@ #include <type_traits> #include <utility> +#include <fmt/format.h> #include <mbedtls/sha1.h> #include <zstd.h> @@ -27,7 +28,6 @@ #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" #include "Common/ScopeGuard.h" -#include "Common/StringUtil.h" #include "Common/Swap.h" #include "DiscIO/Blob.h" @@ -617,9 +617,9 @@ std::string WIARVZFileReader<RVZ>::VersionToString(u32 version) const u8 d = version & 0xff; if (d == 0 || d == 0xff) - return StringFromFormat("%u.%02x.%02x", a, b, c); + return fmt::format("{}.{:02x}.{:02x}", a, b, c); else - return StringFromFormat("%u.%02x.%02x.beta%u", a, b, c, d); + return fmt::format("{}.{:02x}.{:02x}.beta{}", a, b, c, d); } template <bool RVZ> @@ -1694,9 +1694,8 @@ ConversionResultCode WIARVZFileReader<RVZ>::RunCallback(size_t groups_written, u if (bytes_read != 0) ratio = static_cast<int>(100 * bytes_written / bytes_read); - const std::string text = - StringFromFormat(Common::GetStringT("%i of %i blocks. Compression ratio %i%%").c_str(), - groups_written, total_groups, ratio); + const std::string text = Common::FmtFormatT("{0} of {1} blocks. Compression ratio {2}%", + groups_written, total_groups, ratio); const float completion = static_cast<float>(bytes_read) / iso_size; |
