mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
Expose host from app delegate
This commit is contained in:
@@ -25,7 +25,7 @@ namespace osu.Framework.iOS
|
||||
|
||||
private static readonly OutputVolumeObserver output_volume_observer = new OutputVolumeObserver();
|
||||
|
||||
private IOSGameHost host = null!;
|
||||
public IOSGameHost Host { get; private set; } = null!;
|
||||
|
||||
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
|
||||
{
|
||||
@@ -41,8 +41,8 @@ namespace osu.Framework.iOS
|
||||
audioSession.SetCategory(AVAudioSessionCategory.SoloAmbient);
|
||||
audioSession.AddObserver(output_volume_observer, output_volume, NSKeyValueObservingOptions.New, 0);
|
||||
|
||||
host = new IOSGameHost();
|
||||
host.Run(CreateGame());
|
||||
Host = new IOSGameHost();
|
||||
Host.Run(CreateGame());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user