[Bug 288495] [NEW PORT] emulators/Ymir: Sega Saturn emulator

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 08 Aug 2025 16:35:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288495

Vladimir Druzenko <vvd@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ports-bugs@FreeBSD.org      |vvd@FreeBSD.org
             Status|New                         |In Progress

--- Comment #21 from Vladimir Druzenko <vvd@FreeBSD.org> ---
@@ -1898,8 +1898,18 @@ void App::RunEmulator() {
                                                      
actions::save_states::GetLoadStateAction(i),
                                                      
actions::save_states::GetSaveStateAction(i));

+#if FMT_VERSION < 110000
+                                char timeStr[20];
+                                tm timeTm =
util::to_local_time(state.timestamp);
+                                if (!strftime(timeStr, sizeof(timeStr), "%F
%T", &timeTm)) {
+                                    memset(timeStr, 0, sizeof(timeStr));
+                                }
+#else
+                                tm timeStr =
util::to_local_time(state.timestamp);
+#endif
+
                                 if (ImGui::MenuItem(
-                                        fmt::format("{}: {}", i,
util::to_local_time(state.timestamp)).c_str(),
+                                        fmt::format("{}: {}", i,
timeStr).c_str(),
                                         shortcut.c_str(),
m_context.currSaveStateSlot == i, true)) {
                                     if (io.KeyShift) {
                                         SaveSaveStateSlot(i);

-- 
You are receiving this mail because:
You are the assignee for the bug.