From 1f5d9c5d20769eeb97e0b90b7973b909612daada Mon Sep 17 00:00:00 2001 From: Applesaber Date: Thu, 28 May 2026 12:13:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(chu):=20=E6=B7=BB=E5=8A=A0=20Umiguri=20?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E5=A4=B4=E9=83=A8=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E9=9D=99=E9=BB=98=E5=BF=BD=E7=95=A5=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 @MAINBPM @USETIL @ENDHEAD @BGSCENE @FLDSCENE @RLDATE @CMT 这些标签是 Umiguri 新版本使用的元数据/渲染相关标签,对转谱不影响 --- parser/chu/UgcParser.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser/chu/UgcParser.cs b/parser/chu/UgcParser.cs index 10a90bc..e623235 100644 --- a/parser/chu/UgcParser.cs +++ b/parser/chu/UgcParser.cs @@ -184,6 +184,8 @@ private void ParseHeaderLine(string line, ChuChart chart, List alerts, in case "@JACKET": case "@BGIMG": case "@BGMODE": case "@FLDCOL": case "@FLDIMG": case "@FLAG": case "@ATINFO": case "@DLURL": case "@COPYRIGHT": case "@LICENSE": case "@MAINTIL": case "@TIL": + case "@MAINBPM": case "@USETIL": case "@ENDHEAD": + case "@BGSCENE": case "@FLDSCENE": case "@RLDATE": case "@CMT": break; case "@SPDMOD": From f94c000802f05f6898f5ac8d52dcafeb37a4dea6 Mon Sep 17 00:00:00 2001 From: Starrah Date: Thu, 28 May 2026 15:24:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20@ENDHEAD=E5=90=8E=E9=9D=A2=E6=9C=89?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E6=97=B6=E7=9A=84=E9=B2=81=E6=A3=92=E6=80=A7?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parser/chu/UgcParser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/chu/UgcParser.cs b/parser/chu/UgcParser.cs index e623235..18fa251 100644 --- a/parser/chu/UgcParser.cs +++ b/parser/chu/UgcParser.cs @@ -34,7 +34,7 @@ public override (ChuChart, List) Parse(string text) if (inHeader) { - if (line == "@ENDHEAD") + if (line.StartsWith("@ENDHEAD")) { inHeader = false; continue; @@ -183,8 +183,8 @@ private void ParseHeaderLine(string line, ChuChart chart, List alerts, in case "@EXVER": case "@SORT": case "@BGM": case "@BGMOFS": case "@BGMPRV": case "@JACKET": case "@BGIMG": case "@BGMODE": case "@FLDCOL": case "@FLDIMG": case "@FLAG": case "@ATINFO": case "@DLURL": case "@COPYRIGHT": case "@LICENSE": - case "@MAINTIL": case "@TIL": - case "@MAINBPM": case "@USETIL": case "@ENDHEAD": + case "@MAINTIL": case "@TIL": case "@USETIL": + case "@MAINBPM": case "@BGSCENE": case "@FLDSCENE": case "@RLDATE": case "@CMT": break;