forked from MeloNX/MeloNX
Fix settings
This commit is contained in:
parent
7dde0d254a
commit
0cc5476d87
Binary file not shown.
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user