| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 | CheckBattleScene: ; 4ea44
; Return carry if battle scene is turned off.
	ld a, 0
	ld hl, wLinkMode
	call GetFarWRAMByte
	cp LINK_MOBILE
	jr z, .mobile
	ld a, [Options]
	bit BATTLE_SCENE, a
	jr nz, .off
	and a
	ret
.mobile
	ld a, [wcd2f]
	and a
	jr nz, .from_wram
	ld a, $4
	call GetSRAMBank
	ld a, [$a60c]
	ld c, a
	call CloseSRAM
	ld a, c
	bit 0, c
	jr z, .off
	and a
	ret
.from_wram
	ld a, $5
	ld hl, w5_dc00
	call GetFarWRAMByte
	bit 0, a
	jr z, .off
	and a
	ret
.off
	scf
	ret
 |