1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:42:58 +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
parent 68402bfd11
commit 7a10e132ea
No known key found for this signature in database

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;