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:
parent
68402bfd11
commit
7a10e132ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user