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:
parent
433f192214
commit
8a54dab5d0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user