1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Add special case to hide definitely non-working renderers on android

This commit is contained in:
Dean Herbert 2023-03-26 20:14:33 +09:00
parent e346b02ebf
commit 764361b3d3

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Extensions;
@ -71,7 +72,13 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
}));
});
if (renderer.Value == RendererType.Automatic)
// TODO: remove this once we support SDL+android.
if (RuntimeInfo.OS == RuntimeInfo.Platform.Android)
{
rendererDropdown.Items = new[] { RendererType.Automatic, RendererType.OpenGLLegacy };
rendererDropdown.SetNoticeText("New renderer support for android is coming soon!", true);
}
else if (renderer.Value == RendererType.Automatic)
rendererDropdown.SetNoticeText(GraphicsSettingsStrings.CurrentRenderer(host.ResolvedRenderer.GetDescription()));
}
}