Skip to content

Commit

Permalink
FIX: copy banner/stage file to .osz
Browse files Browse the repository at this point in the history
  • Loading branch information
QingQiz committed Jul 1, 2022
1 parent 63225ae commit 6c90c21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BmsToOsu/Converter/Osu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public static (string, HashSet<string> fileToCp) ToOsuBeatMap(

if (File.Exists(Path.Join(dir, data.Metadata.StageFile)))
{
bg = data.Metadata.Banner;
bg = data.Metadata.StageFile;
}
else if (File.Exists(Path.Join(dir, data.Metadata.Banner)))
{
bg = data.Metadata.StageFile;
bg = data.Metadata.Banner;
}

if (string.IsNullOrEmpty(bg))
Expand All @@ -68,6 +68,7 @@ public static (string, HashSet<string> fileToCp) ToOsuBeatMap(

if (!string.IsNullOrEmpty(bg))
{
fileToCp.Add(Path.GetFileName(bg));
bd.AppendLine($"0,0,\"{bg}\",0,0");
}

Expand Down

0 comments on commit 6c90c21

Please sign in to comment.