Add detection for Hypervisor

This commit is contained in:
Stossy11 2025-01-21 00:31:41 +11:00
parent 0cc5476d87
commit 52fd0bf79b
3 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#import "SDL2/SDL.h"
#import <utils.h>
#ifdef __cplusplus
extern "C" {

View File

@ -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")
}