From 5bc2f080843540e54749d9a1a3862542c17dbf41 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 31 Jan 2023 14:30:47 -0600 Subject: [PATCH] =?UTF-8?q?Limits=20=E2=80=9CSearch=20CheatBase=E2=80=9D?= =?UTF-8?q?=20option=20to=20DS=20games?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CheatBase currently only contains cheats for DS games, so no use showing option for other systems (yet). --- Delta/Pause Menu/Cheats/CheatsViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Delta/Pause Menu/Cheats/CheatsViewController.swift b/Delta/Pause Menu/Cheats/CheatsViewController.swift index f53e95e..e4f0a42 100644 --- a/Delta/Pause Menu/Cheats/CheatsViewController.swift +++ b/Delta/Pause Menu/Cheats/CheatsViewController.swift @@ -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 = []