Skip to content

Commit

Permalink
Host (macOS): fix incorrect Host on M2 Mac Studio with M2 Max CPU (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Jul 5, 2023
1 parent 65dabd3 commit 2a20338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detection/host/host_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ static const char* getProductName(const FFstrbuf* hwModel)
{
const char* version = hwModel->chars + strlen("Mac");
if(ffStrEquals(version, "14,15")) return "MacBook Air (15-inch, M2, 2023)";
if(ffStrEquals(version, "14,14")) return "Mac Studio (M2 Max, 2023, Two USB-C front ports)";
if(ffStrEquals(version, "14,13")) return "Mac Studio (M2 Ultra, 2023, Two Thunderbolt 4 front ports)";
if(ffStrEquals(version, "14,14")) return "Mac Studio (M2 Ultra, 2023, Two Thunderbolt 4 front ports)";
if(ffStrEquals(version, "14,13")) return "Mac Studio (M2 Max, 2023, Two USB-C front ports)";
if(ffStrEquals(version, "14,8")) return "Mac Pro (2023)";
if(ffStrEquals(version, "14,6") ||
ffStrEquals(version, "14,10")) return "MacBook Pro (16-inch, 2023)";
Expand Down

0 comments on commit 2a20338

Please sign in to comment.