1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 21:32:56 +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")] [Register("AppDelegate")]
public class AppDelegate : GameAppDelegate public class AppDelegate : GameAppDelegate
{ {
private OsuGameIOS IOSGame; private OsuGameIOS game;
protected override Framework.Game CreateGame() protected override Framework.Game CreateGame() => game = new OsuGameIOS();
{
//Save OsuGameIOS for Import
IOSGame = new OsuGameIOS();
return IOSGame;
}
public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation) public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
{ {
//Open in Application Task.Run(() => game.Import(url.Path));
Task.Run(() => IOSGame.Import(url.Path));
return true; return true;
} }
} }