1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 03:33:40 +08:00

Fix crash when retrieval of system title image fails

Closes https://github.com/ppy/osu/issues/26194.
This commit is contained in:
Bartłomiej Dach
2023-12-28 20:33:56 +01:00
Unverified
parent 68402bfd11
commit 7a10e132ea
+2 -2
View File
@@ -138,8 +138,8 @@ namespace osu.Game.Screens.Menu
[BackgroundDependencyLoader]
private void load(LargeTextureStore textureStore)
{
var texture = textureStore.Get(SystemTitle.Image);
if (SystemTitle.Image.Contains(@"@2x"))
Texture? texture = textureStore.Get(SystemTitle.Image);
if (texture != null && SystemTitle.Image.Contains(@"@2x"))
texture.ScaleAdjust *= 2;
AutoSizeAxes = Axes.Both;