DTXManiaXG(Ver.K)4.00Series
修訂 | 35114d45d4a05cee698e625831fed173c72edb09 (tree) |
---|---|
時間 | 2020-10-05 10:38:38 |
作者 | ![]() |
Commiter | FROM / Kenji Yamazaki |
起動時に例外が発生する不具合を修正。
起動処理の最中にウィンドウメッセージが発生し、その処理をしてしまっていたために発生。
そのため、起動処理が完了するまでは Update(), Draw() はスルーするように修正。
@@ -541,9 +541,14 @@ namespace DTXMania | ||
541 | 541 | } |
542 | 542 | protected override void Update( GameTime gameTime ) |
543 | 543 | { |
544 | + if( !this.b起動完了済み ) | |
545 | + return; | |
544 | 546 | } |
545 | 547 | protected override void Draw( GameTime gameTime ) |
546 | 548 | { |
549 | + if( !this.b起動完了済み ) | |
550 | + return; | |
551 | + | |
547 | 552 | Sound管理.t再生中の処理をする(); |
548 | 553 | |
549 | 554 | if( Timer != null ) |
@@ -1979,6 +1984,7 @@ for (int i = 0; i < 3; i++) { | ||
1979 | 1984 | } |
1980 | 1985 | } |
1981 | 1986 | private CSound previewSound; |
1987 | + private bool b起動完了済み = false; | |
1982 | 1988 | |
1983 | 1989 | private void t起動処理() |
1984 | 1990 | { |
@@ -2605,6 +2611,8 @@ for (int i = 0; i < 3; i++) { | ||
2605 | 2611 | r現在のステージ.On活性化(); |
2606 | 2612 | //--------------------- |
2607 | 2613 | #endregion |
2614 | + | |
2615 | + this.b起動完了済み = true; | |
2608 | 2616 | } |
2609 | 2617 | |
2610 | 2618 | public void ShowWindowTitleWithSoundType() |