You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Merge commit '91b822c' into merge-mrwint
This commit is contained in:
@@ -636,7 +636,7 @@ FadeMusic: ; e8358
|
|||||||
ld a, [MusicFadeIDHi]
|
ld a, [MusicFadeIDHi]
|
||||||
ld d, a
|
ld d, a
|
||||||
; load new song
|
; load new song
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
.quit
|
.quit
|
||||||
; cleanup
|
; cleanup
|
||||||
pop bc
|
pop bc
|
||||||
@@ -658,7 +658,7 @@ FadeMusic: ; e8358
|
|||||||
ld a, [MusicFadeIDHi]
|
ld a, [MusicFadeIDHi]
|
||||||
ld d, a
|
ld d, a
|
||||||
; load new song
|
; load new song
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
pop bc
|
pop bc
|
||||||
; fade in
|
; fade in
|
||||||
ld hl, MusicFade
|
ld hl, MusicFade
|
||||||
@@ -2081,7 +2081,7 @@ MusicEB: ; e8a30
|
|||||||
call GetMusicByte
|
call GetMusicByte
|
||||||
ld d, a
|
ld d, a
|
||||||
push bc
|
push bc
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
; e8a3e
|
; e8a3e
|
||||||
@@ -2308,7 +2308,7 @@ SetLRTracks: ; e8b1b
|
|||||||
ret
|
ret
|
||||||
; e8b30
|
; e8b30
|
||||||
|
|
||||||
LoadMusic: ; e8b30
|
_PlayMusic: ; e8b30
|
||||||
; load music
|
; load music
|
||||||
call MusicOff
|
call MusicOff
|
||||||
ld hl, MusicID
|
ld hl, MusicID
|
||||||
|
10
main.asm
10
main.asm
@@ -3055,7 +3055,7 @@ PlayMusic: ; 3b97
|
|||||||
|
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(LoadMusic) ; and BANK(SoundRestart)
|
ld a, BANK(_PlayMusic) ; and BANK(SoundRestart)
|
||||||
ld [hROMBank], a
|
ld [hROMBank], a
|
||||||
ld [MBC3RomBank], a
|
ld [MBC3RomBank], a
|
||||||
|
|
||||||
@@ -3063,7 +3063,7 @@ PlayMusic: ; 3b97
|
|||||||
and a
|
and a
|
||||||
jr z, .nomusic
|
jr z, .nomusic
|
||||||
|
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
jr .end
|
jr .end
|
||||||
|
|
||||||
.nomusic
|
.nomusic
|
||||||
@@ -3091,16 +3091,16 @@ PlayMusic2: ; 3bbc
|
|||||||
|
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(LoadMusic)
|
ld a, BANK(_PlayMusic)
|
||||||
ld [hROMBank], a
|
ld [hROMBank], a
|
||||||
ld [MBC3RomBank], a
|
ld [MBC3RomBank], a
|
||||||
|
|
||||||
push de
|
push de
|
||||||
ld de, MUSIC_NONE
|
ld de, MUSIC_NONE
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
pop de
|
pop de
|
||||||
call LoadMusic
|
call _PlayMusic
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
ld [hROMBank], a
|
ld [hROMBank], a
|
||||||
|
Reference in New Issue
Block a user