mirror of
https://github.com/hholtmann/smcFanControl.git
synced 2025-11-04 19:49:16 +01:00
For Apple Silicon use the temperature sensors from IOKIT
This commit is contained in:
@ -22,9 +22,6 @@
|
||||
|
||||
#import "MachineDefaults.h"
|
||||
#import "NSFileManager+DirectoryLocations.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <mach/machine.h>
|
||||
|
||||
@interface MachineDefaults ()
|
||||
{
|
||||
@ -126,14 +123,6 @@
|
||||
return defaultsDict;
|
||||
}
|
||||
|
||||
+ (BOOL)isAppleSilicon
|
||||
{
|
||||
cpu_type_t cpu_type;
|
||||
size_t size = sizeof(cpu_type);
|
||||
sysctlbyname("hw.cputype", &cpu_type, &size, NULL, 0);
|
||||
return cpu_type == CPU_TYPE_ARM64;
|
||||
}
|
||||
|
||||
+ (NSString *)computerModel
|
||||
{
|
||||
static NSString *computerModel = nil;
|
||||
|
||||
Reference in New Issue
Block a user