Core: Replace usages of StringFromFormat with fmt where applicable

Migrates usages of StringFromFormat over to using fmt.
This commit is contained in:
Lioncash committed 2019-11-11 07:32:57 -05:00
1 parent 6282b0d83e
commit febd1c3dba
30 files changed
+192 -165

No files matched your search

+3 -1
View File
@@ -12,6 +12,8 @@
#include <unordered_map>
#include <utility>
#include <fmt/format.h>
#include "Common/FileUtil.h"
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
@@ -132,6 +134,6 @@ std::string TitleDatabase::Describe(const std::string& gametdb_id, DiscIO::Langu
const std::string& title_name = GetTitleName(gametdb_id, language);
if (title_name.empty())
return gametdb_id;
return StringFromFormat("%s (%s)", title_name.c_str(), gametdb_id.c_str());
return fmt::format("{} ({})", title_name, gametdb_id);
}
} // namespace Core