diff --git a/Delta/AppDelegate.swift b/Delta/AppDelegate.swift index 271d6c4..a98770a 100644 --- a/Delta/AppDelegate.swift +++ b/Delta/AppDelegate.swift @@ -38,7 +38,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { Settings.registerDefaults() + #if BETA System.allCases.forEach { Delta.register($0.deltaCore) } + #else + System.allCases.filter { $0 != .ds }.forEach { Delta.register($0.deltaCore) } + #endif #if DEBUG diff --git a/Delta/Database/DatabaseManager.swift b/Delta/Database/DatabaseManager.swift index 344e523..691acab 100644 --- a/Delta/Database/DatabaseManager.swift +++ b/Delta/Database/DatabaseManager.swift @@ -201,6 +201,13 @@ extension DatabaseManager continue } + #if !BETA + guard system != .ds else { + errors.insert(.unsupported(url)) + continue + } + #endif + let identifier: String do diff --git a/Delta/Extensions/Bundle+SwizzleBundleID.swift b/Delta/Extensions/Bundle+SwizzleBundleID.swift index e876bc7..aafa753 100644 --- a/Delta/Extensions/Bundle+SwizzleBundleID.swift +++ b/Delta/Extensions/Bundle+SwizzleBundleID.swift @@ -13,7 +13,11 @@ extension Bundle { @objc private var swizzled_infoDictionary: [String : Any]? { var infoDictionary = self.swizzled_infoDictionary + #if BETA + infoDictionary?[kCFBundleIdentifierKey as String] = "com.rileytestut.Delta.AltStore.Beta" + #else infoDictionary?[kCFBundleIdentifierKey as String] = "com.rileytestut.Delta.AltStore" + #endif return infoDictionary } diff --git a/Delta/Game Selection/GamesViewController.swift b/Delta/Game Selection/GamesViewController.swift index 822ddf2..4c0aea3 100644 --- a/Delta/Game Selection/GamesViewController.swift +++ b/Delta/Game Selection/GamesViewController.swift @@ -323,7 +323,13 @@ extension GamesViewController: ImportControllerDelegate { @IBAction private func importFiles() { - var documentTypes = Set(System.allCases.map { $0.gameType.rawValue }) + #if BETA + let systems = System.allCases + #else + let systems = System.allCases.filter { $0 != .ds } + #endif + + var documentTypes = Set(systems.map { $0.gameType.rawValue }) documentTypes.insert(kUTTypeZipArchive as String) // Add GBA4iOS's exported UTIs in case user has GBA4iOS installed (which may override Delta's UTI declarations) diff --git a/Delta/Settings/SettingsViewController.swift b/Delta/Settings/SettingsViewController.swift index 8b3cdc3..5d1eb9a 100644 --- a/Delta/Settings/SettingsViewController.swift +++ b/Delta/Settings/SettingsViewController.swift @@ -232,7 +232,13 @@ extension SettingsViewController switch section { case .controllers: return 1 // Temporarily hide other controller indexes until controller logic is finalized - case .controllerSkins: return System.allCases.count + case .controllerSkins: + #if BETA + return System.allCases.count + #else + return System.allCases.filter { $0 != .ds}.count + #endif + case .syncing: return SyncManager.shared.coordinator?.account == nil ? 1 : super.tableView(tableView, numberOfRowsInSection: sectionIndex) default: if isSectionHidden(section)