Limits “Search CheatBase” option to DS games

CheatBase currently only contains cheats for DS games, so no use showing option for other systems (yet).
This commit is contained in:
Riley Testut 2023-01-31 14:30:47 -06:00
parent 041cce64b0
commit 5bc2f08084

View File

@ -11,6 +11,7 @@ import CoreData
import SwiftUI
import DeltaCore
import MelonDSDeltaCore
import Roxas
@ -113,6 +114,9 @@ private extension CheatsViewController
@available(iOS 14, *) @MainActor
func updateAddCheatMenu()
{
// CheatBase only contains DS cheats for now, so hide option completely for other systems.
guard self.game.type == .ds else { return }
var searchCheatBaseTitle = NSLocalizedString("Search CheatBase", comment: "")
var attributes: UIMenuElement.Attributes = []