Refactor iOS application startup logic to power up SDL

This commit is contained in:
Salman Ahmed
2023-02-23 15:02:55 +03:00
parent 4c4209656f
commit 6eda27a17b
12 changed files with 84 additions and 219 deletions

View File

@@ -1,17 +0,0 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using Foundation;
using osu.Framework;
using osu.Framework.iOS;
namespace SampleGame.iOS
{
[Register("AppDelegate")]
public class AppDelegate : GameAppDelegate
{
protected override Game CreateGame() => new SampleGameGame();
}
}

View File

@@ -3,16 +3,13 @@
#nullable disable
using UIKit;
using osu.Framework.iOS;
namespace SampleGame.iOS
{
public static class Application
{
// This is the main entry point of the application.
public static void Main(string[] args)
{
UIApplication.Main(args, null, typeof(AppDelegate));
}
public static void Main(string[] args) => GameApplication.Main(new SampleGameGame());
}
}