OS (macOS): seems macOS 26 Beta 1 still reports itself as macOS 16. Honor it.

This commit is contained in:
李通洲
2025-06-17 14:01:22 +08:00
parent 39e009b945
commit d182f3f743
2 changed files with 3 additions and 3 deletions
@@ -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");
+2 -2
View File
@@ -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;