forked from MeloNX/MeloNX
Add detection for Hypervisor
This commit is contained in:
parent
0cc5476d87
commit
52fd0bf79b
Binary file not shown.
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#import "SDL2/SDL.h"
|
#import "SDL2/SDL.h"
|
||||||
|
#import <utils.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -276,7 +276,7 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let cpuInfo = getCPUInfo(), cpuInfo.hasPrefix("Apple M") {
|
if let cpuInfo = getCPUInfo(), cpuInfo.hasPrefix("Apple M") {
|
||||||
if #available (iOS 16.4, *), (false) {
|
if #available (iOS 16.4, *), getEntitlementValue("com.apple.private.hypervisor") {
|
||||||
Toggle(isOn: .constant(false)) {
|
Toggle(isOn: .constant(false)) {
|
||||||
labelWithIcon("Hypervisor", iconName: "bolt.fill")
|
labelWithIcon("Hypervisor", iconName: "bolt.fill")
|
||||||
}
|
}
|
||||||
@ -384,6 +384,8 @@ struct SettingsView: View {
|
|||||||
Text("Remove Firmware")
|
Text("Remove Firmware")
|
||||||
.font(.body)
|
.font(.body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} label: {
|
} label: {
|
||||||
Text("Advanced Options")
|
Text("Advanced Options")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user