
DMAHijackingApply:
    di
    ld de, DMAHijackingRoutine
    ld hl, $ff80
    ld [hl], $cd
    inc l
    ld [hl], e
    inc l
    ld [hl], d
    inc l
    ld [hl], $e2
    ei
    ; fall through to DMAHijackingEnable

DMAHijackingEnable:
    ld a, 1
    ld [wDMAHijackingEnabled], a
    ret
DMAHijackingDisable:
    xor a
    ld [wDMAHijackingEnabled], a
    ret

DMAHijackingProc:
    ;ld hl, wJoyIgnore
    ;set 3, [hl]
    	;ld a, [wIsInBattle]
    	;and a
    	;jr z, .skipMusicChanges
    	;ld hl, wChannelDuties
    	;ld a, $80
    	;ld [hli], a
    	;ld [hl], a
	;.skipMusicChanges

    ;ld a, [$FF40]
    ;set 1, a
    ;ld [$FF40], a

    ret