Skip to content

Commit 557e983

Browse files
committed
fix: hold 时间不对
1 parent b902bc2 commit 557e983

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

MaiChartManager/Controllers/ImportChartController.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ public ImportChartResult ImportChart([FromForm] int id, IFormFile file, [FromFor
247247

248248
if (debug)
249249
{
250-
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path + ".debug"), originalConverted);
250+
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path + ".afterSimaiSharp.txt"), SimaiConvert.Serialize(chart));
251+
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path + ".preShift.ma2"), originalConverted);
252+
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path + ".preShift.txt"), maiLibChart.Compose(ChartEnum.ChartVersion.SimaiFes));
251253
}
252254

253255
if (chartPadding != 0)
@@ -277,6 +279,10 @@ public ImportChartResult ImportChart([FromForm] int id, IFormFile file, [FromFor
277279

278280
targetChart.MaxNotes = maiLibChart.AllNoteNum;
279281
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path), shiftedConverted);
282+
if (debug)
283+
{
284+
System.IO.File.WriteAllText(Path.Combine(Path.GetDirectoryName(music.FilePath), targetChart.Path + ".afterShift.txt"), maiLibChart.Compose(ChartEnum.ChartVersion.SimaiFes));
285+
}
280286

281287
targetChart.Enable = true;
282288
}

MaiLib

0 commit comments

Comments
 (0)