OS (macOS): force reporting 26 on macOS Tahoe

Fix #1809
This commit is contained in:
李通洲
2025-06-25 09:17:13 +08:00
parent e68f766b4d
commit 45cbc6de83
+5
View File
@@ -25,6 +25,11 @@ static void parseSystemVersion(FFOSResult* os)
ffStrbufInitS(&os->version, value.UTF8String);
if((value = dict[@"ProductBuildVersion"]))
ffStrbufInitS(&os->buildID, value.UTF8String);
if (ffStrbufStartsWithS(&os->version, "16."))
{
// macOS 26 Tahoe. #1809
os->version.chars[0] = '2';
}
}
static bool detectOSCodeName(FFOSResult* os)