mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-14 12:09:09 +00:00
Core: Replace usages of StringFromFormat with fmt where applicable
Migrates usages of StringFromFormat over to using fmt.
This commit is contained in:
parent
6282b0d83e
commit
febd1c3dba
30 changed files with 192 additions and 165 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue