mirror of
https://github.com/ppy/osu
synced 2025-03-05 02:49:30 +00: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]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LargeTextureStore textureStore)
|
private void load(LargeTextureStore textureStore)
|
||||||
{
|
{
|
||||||
var texture = textureStore.Get(SystemTitle.Image);
|
Texture? texture = textureStore.Get(SystemTitle.Image);
|
||||||
if (SystemTitle.Image.Contains(@"@2x"))
|
if (texture != null && SystemTitle.Image.Contains(@"@2x"))
|
||||||
texture.ScaleAdjust *= 2;
|
texture.ScaleAdjust *= 2;
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
Loading…
Reference in New Issue
Block a user