mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Don't try to load a launch storyboard on tvOS (it doesn't use them).
This commit is contained in:
parent
666d3fecc8
commit
40ecac8e60
@ -364,6 +364,8 @@ SDL_LoadLaunchImageNamed(NSString *name, int screenh)
|
|||||||
* time events are pumped. */
|
* time events are pumped. */
|
||||||
UIViewController *vc = nil;
|
UIViewController *vc = nil;
|
||||||
|
|
||||||
|
/* TODO: Try to load the 1080p launch image on tvOS. */
|
||||||
|
#if !TARGET_OS_TV
|
||||||
NSString *screenname = [bundle objectForInfoDictionaryKey:@"UILaunchStoryboardName"];
|
NSString *screenname = [bundle objectForInfoDictionaryKey:@"UILaunchStoryboardName"];
|
||||||
|
|
||||||
if (screenname && UIKit_IsSystemVersionAtLeast(8.0)) {
|
if (screenname && UIKit_IsSystemVersionAtLeast(8.0)) {
|
||||||
@ -382,6 +384,7 @@ SDL_LoadLaunchImageNamed(NSString *name, int screenh)
|
|||||||
if (vc == nil) {
|
if (vc == nil) {
|
||||||
vc = [[SDLLaunchScreenController alloc] initWithNibName:screenname bundle:bundle];
|
vc = [[SDLLaunchScreenController alloc] initWithNibName:screenname bundle:bundle];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (vc.view) {
|
if (vc.view) {
|
||||||
launchWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
launchWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||||
|
Loading…
Reference in New Issue
Block a user