mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Add missing extension to filename
Co-authored-by: Dan Balasescu <smoogipoo@smgi.me>
This commit is contained in:
parent
c9a73926a6
commit
d32b77f045
@ -247,7 +247,7 @@ namespace osu.Game.Beatmaps
|
|||||||
var fileInfo = setInfo.Files.SingleOrDefault(f => string.Equals(f.Filename, beatmapInfo.Path, StringComparison.OrdinalIgnoreCase)) ?? new BeatmapSetFileInfo();
|
var fileInfo = setInfo.Files.SingleOrDefault(f => string.Equals(f.Filename, beatmapInfo.Path, StringComparison.OrdinalIgnoreCase)) ?? new BeatmapSetFileInfo();
|
||||||
|
|
||||||
// metadata may have changed; update the path with the standard format.
|
// metadata may have changed; update the path with the standard format.
|
||||||
beatmapInfo.Path = $"{metadata.Artist} - {metadata.Title} ({metadata.Author}) [{beatmapInfo.Version}]";
|
beatmapInfo.Path = $"{metadata.Artist} - {metadata.Title} ({metadata.Author}) [{beatmapInfo.Version}].osu";
|
||||||
beatmapInfo.MD5Hash = stream.ComputeMD5Hash();
|
beatmapInfo.MD5Hash = stream.ComputeMD5Hash();
|
||||||
|
|
||||||
// update existing or populate new file's filename.
|
// update existing or populate new file's filename.
|
||||||
|
Loading…
Reference in New Issue
Block a user