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 <utils.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -276,7 +276,7 @@ struct SettingsView: View {
|
||||
}
|
||||
|
||||
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)) {
|
||||
labelWithIcon("Hypervisor", iconName: "bolt.fill")
|
||||
}
|
||||
@ -384,6 +384,8 @@ struct SettingsView: View {
|
||||
Text("Remove Firmware")
|
||||
.font(.body)
|
||||
}
|
||||
|
||||
|
||||
} label: {
|
||||
Text("Advanced Options")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user