shithub: pokecrystal

Download patch

ref: 10a1e6c860f3ab1ec3ebfd74fdd5979613f5d04b
parent: c66d195089b1e1b823be4f0a0fc9b8f41f5f790d
author: Remy Oukaour <[email protected]>
date: Sun Dec 24 07:52:05 EST 2017

Support old one-argument sound_duty macro, similar to callab/callba legacy support

--- a/macros/scripts/audio.asm
+++ b/macros/scripts/audio.asm
@@ -72,7 +72,11 @@
 	enum sound_duty_cmd ; $de
 sound_duty: macro
 	db sound_duty_cmd
+	if _NARG == 4
 	db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
+	else
+	db \1 ; one-byte duty value for legacy support
+	endc
 	endm
 
 	enum togglesfx_cmd ; $df