From a4a2ae7d675ccdebcadc9eecc97bc4d6b1370f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 27 Dec 2024 14:07:17 +0800 Subject: [PATCH] Host (macOS): fix thunderbolt version of new MBPs Fix #1465 --- src/detection/host/host_mac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detection/host/host_mac.c b/src/detection/host/host_mac.c index 8f8551cfc..20460b4d4 100644 --- a/src/detection/host/host_mac.c +++ b/src/detection/host/host_mac.c @@ -109,11 +109,11 @@ const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel) const char* version = hwModel->chars + strlen("Mac"); if(ffStrEquals(version, "16,3")) return "iMac (24-inch, 2024, Four Thunderbolt / USB 4 ports)"; if(ffStrEquals(version, "16,2")) return "iMac (24-inch, 2024, Two Thunderbolt / USB 4 ports)"; - if(ffStrEquals(version, "16,1") || - ffStrEquals(version, "16,6") || - ffStrEquals(version, "16,8")) return "MacBook Pro (14-inch, 2024, Three Thunderbolt 4 ports)"; + if(ffStrEquals(version, "16,1")) return "MacBook Pro (14-inch, 2024, Three Thunderbolt 4 ports)"; + if(ffStrEquals(version, "16,6") || + ffStrEquals(version, "16,8")) return "MacBook Pro (14-inch, 2024, Three Thunderbolt 5 ports)"; if(ffStrEquals(version, "16,7") || - ffStrEquals(version, "16,5")) return "MacBook Pro (16-inch, 2024, Three Thunderbolt 4 ports)"; + ffStrEquals(version, "16,5")) return "MacBook Pro (16-inch, 2024, Three Thunderbolt 5 ports)"; if(ffStrEquals(version, "16,15") || ffStrEquals(version, "16,10")) return "Mac mini (2024)"; if(ffStrEquals(version, "15,13")) return "MacBook Air (15-inch, M3, 2024)";