mirror of
https://github.com/SK-la/Ez2Lazer.git
synced 2026-03-13 11:20:28 +00:00
Merge pull request #36401 from peppy/fix-skin-save-crash
Fix skin saving crashing if hashable files are not present
This commit is contained in:
@@ -474,8 +474,10 @@ namespace osu.Game.Database
|
||||
|
||||
foreach (RealmNamedFileUsage file in item.Files.Where(f => HashableFileTypes.Any(ext => f.Filename.EndsWith(ext, StringComparison.OrdinalIgnoreCase))).OrderBy(f => f.Filename))
|
||||
{
|
||||
using (Stream s = Files.Store.GetStream(file.File.GetStoragePath()))
|
||||
s.CopyTo(hashable);
|
||||
using (Stream? s = Files.Store.GetStream(file.File.GetStoragePath()))
|
||||
{
|
||||
s?.CopyTo(hashable);
|
||||
}
|
||||
}
|
||||
|
||||
if (hashable.Length > 0)
|
||||
|
||||
Reference in New Issue
Block a user