Skip to content

Commit

Permalink
misc: 在文件后面加上扩展名方便查看
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Feb 25, 2024
1 parent 10dcfe7 commit 5b1c0d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ private void updateFileSupporters(BeatmapSetInfo setInfo, WorkingBeatmap beatmap

Task.Run(async () =>
{
string? final = await directAccessor.ExportSingleTask(setInfo, beatmap.Metadata.BackgroundFile, $"{root}/{beatmap.BeatmapSetInfo.OnlineID}_{beatmap.Metadata.BackgroundFile.GetHashCode()}")
var extensionName = "";
var rawNameSplit = beatmap.Metadata.BackgroundFile.Split('.');
extensionName = rawNameSplit.Length >= 2 ? rawNameSplit[^1] : "";

string? final = await directAccessor.ExportSingleTask(setInfo, beatmap.Metadata.BackgroundFile, $"{root}/{beatmap.BeatmapSetInfo.OnlineID}_{beatmap.Metadata.BackgroundFile.GetHashCode()}.{extensionName}")
.ConfigureAwait(false);

if (final == null) return;
Expand Down

0 comments on commit 5b1c0d2

Please sign in to comment.