mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Merge pull request #5832 from peppy/fix-beatmap-skin-parse-fail
Don't return DefaultSkin on beatmap skin parsing failure
This commit is contained in:
@ -138,19 +138,15 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
protected override Skin GetSkin()
|
protected override Skin GetSkin()
|
||||||
{
|
{
|
||||||
Skin skin;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
skin = new LegacyBeatmapSkin(BeatmapInfo, store, AudioManager);
|
return new LegacyBeatmapSkin(BeatmapInfo, store, AudioManager);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Logger.Error(e, "Skin failed to load");
|
Logger.Error(e, "Skin failed to load");
|
||||||
skin = new DefaultSkin();
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return skin;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user