From e63a52567119389b07819935c77fc17cf23529fc Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 21 Feb 2019 15:24:53 -0800 Subject: [PATCH] Fixes black screen when running NES games on device without debugger --- Delta/AppDelegate.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Delta/AppDelegate.swift b/Delta/AppDelegate.swift index 81b47ad..8631eff 100644 --- a/Delta/AppDelegate.swift +++ b/Delta/AppDelegate.swift @@ -22,12 +22,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - Fabric.with([Crashlytics.self]) - Settings.registerDefaults() System.allCases.forEach { Delta.register($0.deltaCore) } + // Must go AFTER registering cores, or else NESDeltaCore may not work correctly when not connected to debugger 🤷‍♂️ + Fabric.with([Crashlytics.self]) + self.configureAppearance() // Disable system gestures that delay touches on left edge of screen