diff --git a/build/iOS/deps/irrlicht.sh b/build/iOS/deps/irrlicht.sh index 069f18afe..e6735a4f2 100755 --- a/build/iOS/deps/irrlicht.sh +++ b/build/iOS/deps/irrlicht.sh @@ -8,7 +8,7 @@ cd irrlicht-src/ if [ ! -f .patched ]; then - for p in touchcount unscaled dblfreefix viewcontroller headerpath roundingerror; do + for p in touchcount unscaled dblfreefix viewcontroller headerpath roundingerror hideindicator; do patch -p0 <../../patches/irrlicht-$p.patch done touch .patched diff --git a/build/iOS/patches/irrlicht-hideindicator.patch b/build/iOS/patches/irrlicht-hideindicator.patch new file mode 100644 index 000000000..b26c74b0c --- /dev/null +++ b/build/iOS/patches/irrlicht-hideindicator.patch @@ -0,0 +1,29 @@ +--- source/Irrlicht/CIrrDeviceiOS.mm.orig 2018-08-19 12:49:52.000000000 +0200 ++++ source/Irrlicht/CIrrDeviceiOS.mm 2018-08-19 12:54:20.000000000 +0200 +@@ -28,6 +28,17 @@ + { + class CIrrDeviceiOS; + } ++ ++/* IrrUIViewController */ ++ ++@interface IrrUIViewController : UIViewController ++@end ++ ++@implementation IrrUIViewController ++- (BOOL)prefersHomeIndicatorAutoHidden { ++ return YES; ++} ++@end + + /* CIrrDelegateiOS */ + +@@ -704,7 +715,7 @@ + if (externalView == nil) + { + dataStorage->Window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; +- dataStorage->ViewController = [[UIViewController alloc] init]; ++ dataStorage->ViewController = [[IrrUIViewController alloc] init]; + dataStorage->Window.rootViewController = dataStorage->ViewController; + + [dataStorage->Window makeKeyAndVisible];