Skip to content

Commit d182f3f

Browse files
committed
OS (macOS): seems macOS 26 Beta 1 still reports itself as macOS 16. Honor it.
1 parent 39e009b commit d182f3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/detection/displayserver/displayserver_apple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
203203
unsigned long osNum = strtoul(version, &str_end, 10);
204204
if (str_end != version)
205205
{
206-
if (osNum >= 26) { // Tahoe
206+
if (osNum > 15) { // Tahoe
207207
ffStrbufSetStatic(&ds->dePrettyName, "Liquid Glass");
208208
} else if (osNum < 10) {
209209
ffStrbufSetStatic(&ds->dePrettyName, "Platinum");

src/detection/os/os_apple.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static bool detectOSCodeName(FFOSResult* os)
3737

3838
switch (num)
3939
{
40-
case 26: ffStrbufSetStatic(&os->codename, "Tahoe"); return true;
41-
// !
40+
case 26:
41+
case 16: ffStrbufSetStatic(&os->codename, "Tahoe"); return true;
4242
case 15: ffStrbufSetStatic(&os->codename, "Sequoia"); return true;
4343
case 14: ffStrbufSetStatic(&os->codename, "Sonoma"); return true;
4444
case 13: ffStrbufSetStatic(&os->codename, "Ventura"); return true;

0 commit comments

Comments
 (0)