OSDN Git Service

#26775 [DTXC] fixed to load all bgm properties
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Mon, 21 Nov 2011 16:32:45 +0000 (16:32 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Mon, 21 Nov 2011 16:32:45 +0000 (16:32 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@260 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXCreatorプロジェクト/コード/00.全体/CDTX入出力.cs

index 6cef230..3da9d97 100644 (file)
@@ -50,7 +50,7 @@ namespace DTXCreator
                        {\r
                                this.dic小節長倍率 = new Dictionary<int, float>();\r
                                this.listチップパレット = new List<int>();\r
-                               this.nBGMWAV番号 = -1;\r
+                               this.listBGMWAV番号 = new List<int>();                                                                                        // #26775 2011.11.21 yyagi\r
                                this.nLastBarConverted = -1;\r
                                this.eDTXbgmChs = DTXbgmChs.GetEnumerator();\r
                                this._Form.listViewWAVリスト.BeginUpdate();\r
@@ -106,9 +106,12 @@ namespace DTXCreator
                                        this.tDTX入力・BPMチップにBPx数値をバインドする();\r
                                        this.tDTX入力・キャッシュからListViewを一括構築する();\r
                                        this.tDTX入力・チップパレットのListViewを一括構築する();\r
-                                       if( this.nBGMWAV番号 >= 0 )\r
+                                       if( this.listBGMWAV番号.Count > 0 )                                                   // #26775 2011.11.21 yyagi\r
                                        {\r
-                                               this._Form.mgrWAVリスト管理者.tWAVをキャッシュから検索して返す・なければ新規生成する( this.nBGMWAV番号 ).bBGMとして使用 = true;\r
+                                               foreach ( int nBGMWAV番号 in listBGMWAV番号 )                       // #26775 2011.11.21 yyagi\r
+                                               {\r
+                                                       this._Form.mgrWAVリスト管理者.tWAVをキャッシュから検索して返す・なければ新規生成する( nBGMWAV番号 ).bBGMとして使用 = true;\r
+                                               }\r
                                        }\r
                                        this._Form.listViewWAVリスト.EndUpdate();\r
                                        this._Form.listViewBMPリスト.EndUpdate();\r
@@ -181,7 +184,7 @@ namespace DTXCreator
                private Dictionary<int, float> dic小節長倍率;\r
                private E種別 e種別;\r
                private List<int> listチップパレット;\r
-               private int nBGMWAV番号 = -1;\r
+               private List<int> listBGMWAV番号 = null;                      // #26775 2011.11.21 yyagi\r
                \r
                private void tDTX入力・BPMチップにBPx数値をバインドする()\r
                {\r
@@ -433,7 +436,7 @@ namespace DTXCreator
                        {\r
                                return false;\r
                        }\r
-                       this.nBGMWAV番号 = num;\r
+                       this.listBGMWAV番号.Add( num );\r
                        return true;\r
                }\r
                private bool tDTX入力・行解析・BMP( string strコマンド, string strパラメータ, string strコメント )\r