diff options
| author | Mai M <mathew1800@gmail.com> | 2021-11-07 00:08:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-07 00:08:14 -0400 |
| commit | 6c72e6814db693f6c139dda10f4fed4f48b2c957 (patch) | |
| tree | a3705f24c2b0a33e13a4ae885862ed51d5a9dc70 /Source/Core/VideoCommon/FrameDump.cpp | |
| parent | c89226cbd4e0dccd9888012d6bb18b7565c473ad (diff) | |
| parent | fd7df2ccae4ef18e8fdcf3dcf369c8f2ff185825 (diff) | |
Merge pull request #10169 from leoetlino/fmt-localtime
Use fmt::localtime instead of thread-unsafe std::localtime
Diffstat (limited to 'Source/Core/VideoCommon/FrameDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FrameDump.cpp b/Source/Core/VideoCommon/FrameDump.cpp index 2773c0e0fe..08041a7177 100644 --- a/Source/Core/VideoCommon/FrameDump.cpp +++ b/Source/Core/VideoCommon/FrameDump.cpp @@ -86,7 +86,7 @@ std::string GetDumpPath(const std::string& extension, std::time_t time, u32 inde File::GetUserPath(D_DUMPFRAMES_IDX) + SConfig::GetInstance().GetGameID(); const std::string base_name = - fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}_{}", path_prefix, *std::localtime(&time), index); + fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}_{}", path_prefix, fmt::localtime(time), index); const std::string path = fmt::format("{}.{}", base_name, extension); |
