From 5a87a11917c9c57fea8668ad9d87847a992ad100 Mon Sep 17 00:00:00 2001 From: collecting Date: Sun, 5 Oct 2025 02:25:14 +0000 Subject: [PATCH] fix: Clang Compiler --- src/core/perf_stats.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index 957be9614..5a4412675 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: 2017 Citra Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include @@ -41,7 +42,9 @@ PerfStats::~PerfStats() { const auto path = Common::FS::GetCitronPath(Common::FS::CitronPath::LogDir); // %F Date format expanded is "%Y-%m-%d" - const auto filename = fmt::format("{:%F-%H-%M}_{:016X}.csv", *std::localtime(&t), title_id); + char time_buf[128]; + std::strftime(time_buf, sizeof(time_buf), "%F-%H-%M", std::localtime(&t)); + const auto filename = fmt::format("{}_{:016X}.csv", time_buf, title_id); const auto filepath = path / filename; if (Common::FS::CreateParentDir(filepath)) {