diff --git a/osu.Android.props b/osu.Android.props
index fdec4e575be4..270a0aa44b76 100644
--- a/osu.Android.props
+++ b/osu.Android.props
@@ -11,7 +11,7 @@
manifestmerger.jar
-
+
diff --git a/osu.Desktop/OsuGameDesktop.cs b/osu.Desktop/OsuGameDesktop.cs
index efd3d358b7d7..a0db896f46da 100644
--- a/osu.Desktop/OsuGameDesktop.cs
+++ b/osu.Desktop/OsuGameDesktop.cs
@@ -147,14 +147,12 @@ public override void SetHost(GameHost host)
{
base.SetHost(host);
- var desktopWindow = (SDL2DesktopWindow)host.Window;
-
var iconStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetType(), "lazer.ico");
if (iconStream != null)
- desktopWindow.SetIconFromStream(iconStream);
+ host.Window.SetIconFromStream(iconStream);
- desktopWindow.CursorState |= CursorState.Hidden;
- desktopWindow.Title = Name;
+ host.Window.CursorState |= CursorState.Hidden;
+ host.Window.Title = Name;
}
protected override BatteryInfo CreateBatteryInfo() => new SDL2BatteryInfo();
diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs
index 93dd97ea1565..5b654e0c1629 100644
--- a/osu.Game/OsuGame.cs
+++ b/osu.Game/OsuGame.cs
@@ -289,9 +289,9 @@ public override void SetHost(GameHost host)
{
base.SetHost(host);
- if (host.Window is SDL2Window sdlWindow)
+ if (host.Window != null)
{
- sdlWindow.DragDrop += path =>
+ host.Window.DragDrop += path =>
{
// on macOS/iOS, URL associations are handled via SDL_DROPFILE events.
if (path.StartsWith(OSU_PROTOCOL, StringComparison.Ordinal))
diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj
index 20b1574617c9..184a77a28663 100644
--- a/osu.Game/osu.Game.csproj
+++ b/osu.Game/osu.Game.csproj
@@ -36,7 +36,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/osu.iOS.props b/osu.iOS.props
index 86694e268a31..51bcc36621af 100644
--- a/osu.iOS.props
+++ b/osu.iOS.props
@@ -16,6 +16,6 @@
iossimulator-x64
-
+