From 2879052aa66e14f53770b826e862c4c1f0d66a45 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 15 Dec 2016 14:49:20 -0600 Subject: [PATCH] =?UTF-8?q?Fixes=20issue=20where=20GBA=20games=20couldn?= =?UTF-8?q?=E2=80=99t=20be=20imported=20if=20GBA4iOS=20was=20also=20instal?= =?UTF-8?q?led?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common/Importing/ImportController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Common/Importing/ImportController.swift b/Common/Importing/ImportController.swift index 09b1c2b..5e5c40e 100644 --- a/Common/Importing/ImportController.swift +++ b/Common/Importing/ImportController.swift @@ -41,6 +41,11 @@ class ImportController: NSObject var documentTypes = Game.supportedTypes.map { $0.rawValue } documentTypes.append(kUTTypeDeltaControllerSkin as String) + // Add GBA4iOS's exported UTIs in case user has GBA4iOS installed (which may override Delta's UTI declarations) + documentTypes.append("com.rileytestut.gba") + documentTypes.append("com.rileytestut.gbc") + documentTypes.append("com.rileytestut.gb") + #if os(iOS) let documentMenuController = UIDocumentMenuViewController(documentTypes: documentTypes, in: .import) documentMenuController.delegate = self