blob: 3c2d137928fb28b1d79adbadad43f743b2a5df19 (
plain)
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
|
org #0b06
PLY_LW_HARDWARE_CPC = 1
PLY_LW_MANAGE_SOUND_EFFECTS = 1
PLY_LW_USE_HOOKS = 0
PLY_LW_STOP_SOUNDS = 1
PLY_CFG_ConfigurationIsPresent = 1
PLY_CFG_SFX_ConfigurationIsPresent = 1
PLY_CFG_SFX_SoftOnly = 1
PLY_CFG_SFX_SoftOnly_Noise = 1
PLY_CFG_NoSoftNoHard = 1
PLY_CFG_SoftOnly = 1
PLY_CFG_SoftOnly_Noise = 1
PLY_CFG_SoftOnly_SoftwarePitch = 1
; my hook table
jp PLY_LW_Init
jp PLY_LW_Play
jp PLY_LW_Stop
jp PLY_LW_InitSoundEffects
jp PLY_LW_PlaySoundEffect
jp PLW_LW_IsSoundEffectOn
include "PlayerLightWeight.asm"
; IN: L = channel
; OUT: L = 0 if is not on
PLW_LW_IsSoundEffectOn:
ld a,l
add a,a
add a,a
add a,a
ld c,a
ld b,0
ld hl,PLY_LW_Channel1_SoundEffectData
add hl,bc
ld a,(hl)
inc hl
or (hl)
ld l,a
ret
|