1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Tidy up code

This commit is contained in:
Dean Herbert 2019-07-26 13:27:37 +09:00
parent 433f192214
commit 8a54dab5d0

View File

@ -12,20 +12,13 @@ namespace osu.iOS
[Register("AppDelegate")]
public class AppDelegate : GameAppDelegate
{
private OsuGameIOS IOSGame;
private OsuGameIOS game;
protected override Framework.Game CreateGame()
{
//Save OsuGameIOS for Import
IOSGame = new OsuGameIOS();
return IOSGame;
}
protected override Framework.Game CreateGame() => game = new OsuGameIOS();
public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
{
//Open in Application
Task.Run(() => IOSGame.Import(url.Path));
Task.Run(() => game.Import(url.Path));
return true;
}
}