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:
parent
041cce64b0
commit
5bc2f08084
@ -11,6 +11,7 @@ import CoreData
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
import DeltaCore
|
import DeltaCore
|
||||||
|
import MelonDSDeltaCore
|
||||||
|
|
||||||
import Roxas
|
import Roxas
|
||||||
|
|
||||||
@ -113,6 +114,9 @@ private extension CheatsViewController
|
|||||||
@available(iOS 14, *) @MainActor
|
@available(iOS 14, *) @MainActor
|
||||||
func updateAddCheatMenu()
|
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 searchCheatBaseTitle = NSLocalizedString("Search CheatBase", comment: "")
|
||||||
var attributes: UIMenuElement.Attributes = []
|
var attributes: UIMenuElement.Attributes = []
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user