mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 02:08:31 +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
|
@ -30,7 +30,7 @@ public:
|
|||
[[nodiscard]] static fs::path GetPath(std::string_view format, TArgs&&... args)
|
||||
{
|
||||
cemu_assert_debug(format.empty() || (format[0] != '/' && format[0] != '\\'));
|
||||
std::string tmpPathStr = fmt::format(format, std::forward<TArgs>(args)...);
|
||||
std::string tmpPathStr = fmt::format(fmt::runtime(format), std::forward<TArgs>(args)...);
|
||||
std::basic_string_view<char8_t> s((const char8_t*)tmpPathStr.data(), tmpPathStr.size());
|
||||
return s_path / fs::path(s);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public:
|
|||
[[nodiscard]] static fs::path GetMlcPath(std::string_view format, TArgs&&... args)
|
||||
{
|
||||
cemu_assert_debug(format.empty() || (format[0] != '/' && format[0] != '\\'));
|
||||
auto tmp = fmt::format(format, std::forward<TArgs>(args)...);
|
||||
auto tmp = fmt::format(fmt::runtime(format), std::forward<TArgs>(args)...);
|
||||
return GetMlcPath() / fs::path(_asUtf8(tmp));
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
[[nodiscard]] static fs::path GetMlcPath(std::wstring_view format, TArgs&&... args)
|
||||
{
|
||||
cemu_assert_debug(format.empty() || (format[0] != L'/' && format[0] != L'\\'));
|
||||
return GetMlcPath() / fmt::format(format, std::forward<TArgs>(args)...);
|
||||
return GetMlcPath() / fmt::format(fmt::runtime(format), std::forward<TArgs>(args)...);
|
||||
}
|
||||
|
||||
// get mlc path to default cemu root dir/mlc01
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue