Skip to content

Commit

Permalink
Expose host from app delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Jan 1, 2025
1 parent 97b4bdd commit 4be28dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Framework.iOS/GameApplicationDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class GameApplicationDelegate : UIApplicationDelegate

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)
{
Expand All @@ -41,8 +41,8 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary l
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;
}

Expand Down

0 comments on commit 4be28dc

Please sign in to comment.