Skip to content

Commit 6155c45

Browse files
authored
Merge pull request #4 from Applesaber/fix/ugc-unknown-header-tags
fix(chu): 添加 Umiguri 新版本头部标签到静默忽略列表
2 parents 578c749 + f94c000 commit 6155c45

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

parser/chu/UgcParser.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override (ChuChart, List<Alert>) Parse(string text)
3434

3535
if (inHeader)
3636
{
37-
if (line == "@ENDHEAD")
37+
if (line.StartsWith("@ENDHEAD"))
3838
{
3939
inHeader = false;
4040
continue;
@@ -183,7 +183,9 @@ private void ParseHeaderLine(string line, ChuChart chart, List<Alert> alerts, in
183183
case "@EXVER": case "@SORT": case "@BGM": case "@BGMOFS": case "@BGMPRV":
184184
case "@JACKET": case "@BGIMG": case "@BGMODE": case "@FLDCOL": case "@FLDIMG":
185185
case "@FLAG": case "@ATINFO": case "@DLURL": case "@COPYRIGHT": case "@LICENSE":
186-
case "@MAINTIL": case "@TIL":
186+
case "@MAINTIL": case "@TIL": case "@USETIL":
187+
case "@MAINBPM":
188+
case "@BGSCENE": case "@FLDSCENE": case "@RLDATE": case "@CMT":
187189
break;
188190

189191
case "@SPDMOD":

0 commit comments

Comments
 (0)