mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 19:28:29 +12:00
Update fmt version to 9.1.0 (#177)
This commit is contained in:
parent
f2ec0b4083
commit
0ed4fdcd78
16 changed files with 56 additions and 33 deletions
|
@ -35,7 +35,7 @@ public:
|
|||
void appendFmt(const char* format_str, Args... args)
|
||||
{
|
||||
char* buf = (char*)(m_strBuffer + m_offsetEnd);
|
||||
char* r = fmt::format_to(buf, format_str, std::forward<Args>(args)...);
|
||||
char* r = fmt::format_to(buf, fmt::runtime(format_str), std::forward<Args>(args)...);
|
||||
cemu_assert_debug(r <= (char*)(m_strBuffer + N));
|
||||
m_offsetEnd += (uint32)(r - buf);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ public:
|
|||
template<typename TFmt, typename ... TArgs>
|
||||
void addFmt(const TFmt& format, TArgs&&... args)
|
||||
{
|
||||
auto r = fmt::vformat_to_n((char*)(this->str + this->length), (size_t)(this->limit - this->length), fmt::to_string_view(format), fmt::make_args_checked<TArgs...>(format, args...));
|
||||
auto r = fmt::vformat_to_n((char*)(this->str + this->length), (size_t)(this->limit - this->length), fmt::detail::to_string_view(format), fmt::make_format_args(args...));
|
||||
this->length += (uint32)r.size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue