Fix settings

This commit is contained in:
Stossy11 2025-01-21 00:21:34 +11:00
parent 7dde0d254a
commit 0cc5476d87
3 changed files with 24 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class Ryujinx {
maxAnisotropy: Float = 0, maxAnisotropy: Float = 0,
macroHLE: Bool = false, macroHLE: Bool = false,
ignoreMissingServices: Bool = false, ignoreMissingServices: Bool = false,
hypervisor: Bool = false,
expandRam: Bool = false expandRam: Bool = false
) { ) {
self.gamepath = gamepath self.gamepath = gamepath
@ -100,6 +101,7 @@ class Ryujinx {
self.macroHLE = macroHLE self.macroHLE = macroHLE
self.expandRam = expandRam self.expandRam = expandRam
self.ignoreMissingServices = ignoreMissingServices self.ignoreMissingServices = ignoreMissingServices
self.hypervisor = hypervisor
} }
} }

View File

@ -274,6 +274,28 @@ struct SettingsView: View {
labelWithIcon("Memory Manager Mode", iconName: "gearshape") 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: { } header: {
Text("CPU Mode") Text("CPU Mode")
.font(.title3.weight(.semibold)) .font(.title3.weight(.semibold))