mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 17:42:56 +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