mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Fix iOS/Android projects, always use SDL3 on them
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Framework.Platform.SDL3;
|
||||
|
||||
namespace osu.Framework.Android
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ using UIKit;
|
||||
|
||||
namespace osu.Framework.iOS
|
||||
{
|
||||
public class IOSGameHost : SDL3GameHost
|
||||
public class IOSGameHost : SDLGameHost
|
||||
{
|
||||
public IOSGameHost()
|
||||
: base(string.Empty)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user