mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 05:52:56 +08:00
fix skin using wrong stream
This commit is contained in:
parent
63dd8bd991
commit
e7a9175aea
@ -44,7 +44,11 @@ namespace osu.Game.Database
|
|||||||
var beatmapContent = new LegacyBeatmapDecoder().Decode(contentStreamReader);
|
var beatmapContent = new LegacyBeatmapDecoder().Decode(contentStreamReader);
|
||||||
|
|
||||||
using var skinStream = base.GetFileContents(model, file);
|
using var skinStream = base.GetFileContents(model, file);
|
||||||
using var skinStreamReader = new LineBufferedReader(contentStream);
|
|
||||||
|
if (skinStream == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
using var skinStreamReader = new LineBufferedReader(skinStream);
|
||||||
var beatmapSkin = new LegacySkin(new SkinInfo(), null!)
|
var beatmapSkin = new LegacySkin(new SkinInfo(), null!)
|
||||||
{
|
{
|
||||||
Configuration = new LegacySkinDecoder().Decode(skinStreamReader)
|
Configuration = new LegacySkinDecoder().Decode(skinStreamReader)
|
||||||
|
Loading…
Reference in New Issue
Block a user