Fix iOS/Android projects, always use SDL3 on them

This commit is contained in:
Dan Balasescu
2024-05-21 19:24:17 +09:00
parent 7bfc9fe532
commit 1b7438fe11
5 changed files with 5 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ using Uri = Android.Net.Uri;
namespace osu.Framework.Android
{
public class AndroidGameHost : SDL3GameHost
public class AndroidGameHost : SDLGameHost
{
private readonly AndroidGameActivity activity;

View File

@@ -4,6 +4,7 @@
using System;
using osu.Framework.Bindables;
using osu.Framework.Platform;
using osu.Framework.Platform.SDL3;
namespace osu.Framework.Android
{

View File

@@ -21,7 +21,7 @@ using UIKit;
namespace osu.Framework.iOS
{
public class IOSGameHost : SDL3GameHost
public class IOSGameHost : SDLGameHost
{
public IOSGameHost()
: base(string.Empty)

View File

@@ -10,6 +10,7 @@ using ObjCRuntime;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Framework.Platform.SDL3;
using SDL;
using UIKit;

View File

@@ -53,7 +53,7 @@ namespace osu.Framework
if (DebugUtils.IsDebugBuild)
AllowInsecureRequests = parseBool(Environment.GetEnvironmentVariable("OSU_INSECURE_REQUESTS")) ?? false;
UseSDL3 = parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? false;
UseSDL3 = RuntimeInfo.IsMobile || (parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? false);
}
private static bool? parseBool(string? value)