From d182f3f743fefac7fc69391b712ce06dd2f44ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 17 Jun 2025 14:01:22 +0800 Subject: [PATCH] OS (macOS): seems macOS 26 Beta 1 still reports itself as macOS 16. Honor it. --- src/detection/displayserver/displayserver_apple.c | 2 +- src/detection/os/os_apple.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/detection/displayserver/displayserver_apple.c b/src/detection/displayserver/displayserver_apple.c index e559e52fc..4ef8d0520 100644 --- a/src/detection/displayserver/displayserver_apple.c +++ b/src/detection/displayserver/displayserver_apple.c @@ -203,7 +203,7 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds) unsigned long osNum = strtoul(version, &str_end, 10); if (str_end != version) { - if (osNum >= 26) { // Tahoe + if (osNum > 15) { // Tahoe ffStrbufSetStatic(&ds->dePrettyName, "Liquid Glass"); } else if (osNum < 10) { ffStrbufSetStatic(&ds->dePrettyName, "Platinum"); diff --git a/src/detection/os/os_apple.m b/src/detection/os/os_apple.m index fe256dd64..e404e0d42 100644 --- a/src/detection/os/os_apple.m +++ b/src/detection/os/os_apple.m @@ -37,8 +37,8 @@ static bool detectOSCodeName(FFOSResult* os) switch (num) { - case 26: ffStrbufSetStatic(&os->codename, "Tahoe"); return true; - // ! + case 26: + case 16: ffStrbufSetStatic(&os->codename, "Tahoe"); return true; case 15: ffStrbufSetStatic(&os->codename, "Sequoia"); return true; case 14: ffStrbufSetStatic(&os->codename, "Sonoma"); return true; case 13: ffStrbufSetStatic(&os->codename, "Ventura"); return true;