Commit 40ecac8e602dfdd06ffc5ad6d3a6daae19bec43e

Alex Szpakowski 2016-09-25T00:21:12

Don't try to load a launch storyboard on tvOS (it doesn't use them).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m
index 1159b60..60aeeda 100644
--- a/src/video/uikit/SDL_uikitappdelegate.m
+++ b/src/video/uikit/SDL_uikitappdelegate.m
@@ -364,6 +364,8 @@ SDL_LoadLaunchImageNamed(NSString *name, int screenh)
      * time events are pumped. */
     UIViewController *vc = nil;
 
+    /* TODO: Try to load the 1080p launch image on tvOS. */
+#if !TARGET_OS_TV
     NSString *screenname = [bundle objectForInfoDictionaryKey:@"UILaunchStoryboardName"];
 
     if (screenname && UIKit_IsSystemVersionAtLeast(8.0)) {
@@ -382,6 +384,7 @@ SDL_LoadLaunchImageNamed(NSString *name, int screenh)
     if (vc == nil) {
         vc = [[SDLLaunchScreenController alloc] initWithNibName:screenname bundle:bundle];
     }
+#endif
 
     if (vc.view) {
         launchWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];