Skip to content

Commit

Permalink
fix issues regarding music open and close
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiXR committed Jun 8, 2021
1 parent 1a5c50e commit 37e17a0
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x86 assmble/x86 assmble/game_noGDIleak_intrf.asm
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ start_music proc

invoke mciSendString, offset szOpenHit, NULL, 0, NULL
invoke mciSendString, offset szOpenMiss, NULL, 0, NULL
invoke mciSendString, offset szOpenAccomp, NULL, 0, NULL
ret
start_music endp

Expand Down Expand Up @@ -561,6 +562,8 @@ end_music proc
invoke mciSendString, offset szCloseMusic, NULL, 0, NULL
invoke mciSendString, offset szStopHit, NULL, 0, NULL
invoke mciSendString, offset szCloseHit, NULL, 0, NULL
invoke mciSendString, offset szStopAccomp, NULL, 0, NULL
invoke mciSendString, offset szCloseAccomp, NULL, 0, NULL
ret
end_music endp

Expand Down Expand Up @@ -1286,6 +1289,9 @@ dir_not_accept:
get_music_list endp

goto_intrf_music proc
.if intrf == 2
invoke end_music
.endif
mov intrf, 1
invoke get_music_list
invoke set_snatch
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
16
254
404
466
691
966
1054
1141
1229
1391
1454
1741
1829
2091
2179
2317
2391
2716
2816
2916
2979
3404
3479
3566
3654
3704
3792
4041
4266
4566
4654
4804
4917
4967
5017
5516
5641
5754
5866
5953
6204
6467
6579
6654
6741
7141
7254
7329
7766
7854
7954
8042
8316
8379
8679
8753
9041
9129
9216
9479
9691
9741
10104
10179
10254
10567
10654
10779
10854
11091
11141
11191
11417
11604
11754
11879
11966
12104
12166
12254
12366
12716
13054
13154
13241
13566
13642
14029
14179
14266
14741
15179
15254
15504
15579
15841
16004
16229
16304
16479
16554
16792
16879
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
136
361
636
774
849
924
1324
1587
1674
1949
2024
2286
2499
2587
2636
3087
3173
3274
3324
3899
3986
4149
4211
4399
4486
4749
4887
5111
5211
5261
5361
5449
5599
6061
6137
6299
6411
6861
6949
7049
7474
7599
7687
8137
8199
8262
8474
8537
8612
8837
8899
8974
9311
9374
9411
9461
9811
9849
10061
10361
10412
10474
10524
10961
10999
11049
11286
11499
11549
11849
12049
12462
12549
12636
12812
12899
12974
13336
13399
13511
13762
13849
13949
14398
14562
14649
14862
14924
15024
15099
15374
15449
15686
15774
15936
16111
16187
16411
16661
16724
17012
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 37e17a0

Please sign in to comment.