Hides AltJIT setting on unsupported devices

This commit is contained in:
Riley Testut 2021-11-16 15:04:19 -08:00
parent f14bb0f890
commit 9492f3165e

View File

@ -150,6 +150,10 @@ private extension MelonDSCoreSettingsViewController
switch section
{
case .performance:
guard Settings.preferredCore(for: .ds) == MelonDS.core else { return true }
return !UIDevice.current.supportsJIT
case .dsBIOS where Settings.preferredCore(for: .ds) == DS.core:
// Using DeSmuME core, which doesn't require BIOS.
return true