Skip to content

Commit 86763c1

Browse files
committed
Expose host from app delegate
1 parent d8621f4 commit 86763c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

osu.Framework.iOS/GameApplicationDelegate.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public abstract class GameApplicationDelegate : UIApplicationDelegate
2525

2626
private static readonly OutputVolumeObserver output_volume_observer = new OutputVolumeObserver();
2727

28-
private IOSGameHost host = null!;
28+
public IOSGameHost Host { get; private set; } = null!;
2929

3030
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
3131
{
@@ -41,8 +41,8 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary l
4141
audioSession.SetCategory(AVAudioSessionCategory.SoloAmbient);
4242
audioSession.AddObserver(output_volume_observer, output_volume, NSKeyValueObservingOptions.New, 0);
4343

44-
host = new IOSGameHost();
45-
host.Run(CreateGame());
44+
Host = new IOSGameHost();
45+
Host.Run(CreateGame());
4646
return true;
4747
}
4848

0 commit comments

Comments
 (0)