From 8088905721f0392f8f3b71b4d0ef829e800180c6 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 18 Jun 2023 14:16:06 +0800 Subject: [PATCH] Host (macOS): update newest product name data --- src/detection/host/host_apple.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/host/host_apple.c b/src/detection/host/host_apple.c index 4f739276b..b696f9a7d 100644 --- a/src/detection/host/host_apple.c +++ b/src/detection/host/host_apple.c @@ -112,6 +112,10 @@ static const char* getProductName(const FFstrbuf* hwModel) else if(ffStrbufStartsWithS(hwModel, "Mac")) { const char* version = hwModel->chars + strlen("Mac"); + if(strEqual(version, "14,15")) return "MacBook Air (15-inch, M2, 2023)"; + if(strEqual(version, "14,14")) return "Mac Studio (M2 Max, 2023, Two USB-C front ports)"; + if(strEqual(version, "14,13")) return "Mac Studio (M2 Ultra, 2023, Two Thunderbolt 4 front ports)"; + if(strEqual(version, "14,8")) return "Mac Pro (2023)"; if(strEqual(version, "14,6") || strEqual(version, "14,10")) return "MacBook Pro (16-inch, 2023)"; if(strEqual(version, "14,5") ||