Skip to content

Commit

Permalink
ヘッダ内にあるメモ(命令以外の文字列)を削除(mod by.DD)
Browse files Browse the repository at this point in the history
  • Loading branch information
kairera0467 committed May 18, 2017
1 parent 558f434 commit 7907d38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DTXManiaプロジェクト/コード/スコア、曲/CDTX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3015,6 +3015,15 @@ private void t入力_V4( string strInput )
{
//2017.01.31 DD カンマのみの行を0,に置き換え
strInput = Regex.Replace( strInput, @"^,", "0,", RegexOptions.Multiline );

//2017.02.03 DD ヘッダ内にある命令以外の文字列を削除
string strInputHeader = strInput.Remove( strInput.IndexOf( "#START" ) );
strInput = strInput.Remove(0, strInput.IndexOf( "#START" ) );
strInputHeader = Regex.Replace( strInputHeader,
@"^(?!(TITLE|LEVEL|BPM|WAVE|OFFSET|BALLOON|SONGVOL|SEVOL|SCOREINIT|SCOREDIFF|COURSE|STYLE|GAME|LIFE|DEMOSTART|SIDE|SUBTITLE|SCOREMODE)).+\n",
"", RegexOptions.Multiline );
strInput = strInputHeader + "\n" + strInput;

//どうせ使わないので先にSplitしてコメントを削除。
this.strSplitした譜面 = (string[])this.str改行文字を削除する( strInput, 1 );
for (int i = 0; this.strSplitした譜面.Length > i; i++)
Expand Down
Binary file modified 実行時フォルダ/DTXManiaGR.exe
Binary file not shown.

0 comments on commit 7907d38

Please sign in to comment.