diff --git a/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate b/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate index ec94a9b79..fc8308bdd 100644 Binary files a/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate and b/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/src/MeloNX/MeloNX/App/Core/Ryujinx/Ryujinx.swift b/src/MeloNX/MeloNX/App/Core/Ryujinx/Ryujinx.swift index dbfb950d7..43388bda7 100644 --- a/src/MeloNX/MeloNX/App/Core/Ryujinx/Ryujinx.swift +++ b/src/MeloNX/MeloNX/App/Core/Ryujinx/Ryujinx.swift @@ -80,6 +80,7 @@ class Ryujinx { maxAnisotropy: Float = 0, macroHLE: Bool = false, ignoreMissingServices: Bool = false, + hypervisor: Bool = false, expandRam: Bool = false ) { self.gamepath = gamepath @@ -100,6 +101,7 @@ class Ryujinx { self.macroHLE = macroHLE self.expandRam = expandRam self.ignoreMissingServices = ignoreMissingServices + self.hypervisor = hypervisor } } diff --git a/src/MeloNX/MeloNX/App/Views/SettingsView/SettingsView.swift b/src/MeloNX/MeloNX/App/Views/SettingsView/SettingsView.swift index 3e4de4e95..982fdfbfc 100644 --- a/src/MeloNX/MeloNX/App/Views/SettingsView/SettingsView.swift +++ b/src/MeloNX/MeloNX/App/Views/SettingsView/SettingsView.swift @@ -274,6 +274,28 @@ struct SettingsView: View { labelWithIcon("Memory Manager Mode", iconName: "gearshape") } } + + if let cpuInfo = getCPUInfo(), cpuInfo.hasPrefix("Apple M") { + if #available (iOS 16.4, *), (false) { + Toggle(isOn: .constant(false)) { + labelWithIcon("Hypervisor", iconName: "bolt.fill") + } + .tint(.blue) + .disabled(true) + .onAppear() { + print("CPU Info: \(cpuInfo)") + } + } else { + Toggle(isOn: $config.hypervisor) { + labelWithIcon("Hypervisor", iconName: "bolt.fill") + } + .tint(.blue) + .onAppear() { + print("CPU Info: \(cpuInfo)") + + } + } + } } header: { Text("CPU Mode") .font(.title3.weight(.semibold))