Fixes black screen when running NES games on device without debugger

This commit is contained in:
Riley Testut 2019-02-21 15:24:53 -08:00
parent a377c1631a
commit e63a525671

View File

@ -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