diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:47 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:47 -0400 |
commit | 676f2f12e3e7990dcc49e3ea391f10aae8131639 (patch) | |
tree | 0411091966fe7a6b5a64f27aa828df015bb84362 /audio | |
parent | 46f6cc4d41494c044f1091491c712afc2a5bfd3a (diff) |
Use more assertions to ensure correct code and data
Diffstat (limited to 'audio')
-rw-r--r-- | audio/sfx.asm | 18 | ||||
-rw-r--r-- | audio/sfx_pointers.asm | 2 |
2 files changed, 13 insertions, 7 deletions
diff --git a/audio/sfx.asm b/audio/sfx.asm index 0669fa65..5dcb27cf 100644 --- a/audio/sfx.asm +++ b/audio/sfx.asm @@ -21,7 +21,8 @@ Sfx_Menu: Sfx_ReadText: Sfx_ReadText2: channel_count 1 - channel 5, Sfx_ReadText_Ch5 ; aka Sfx_ReadText2_Ch5 + channel 5, Sfx_ReadText_Ch5 + assert Sfx_ReadText_Ch5 == Sfx_ReadText2_Ch5 Sfx_Poison: channel_count 1 @@ -466,7 +467,8 @@ Sfx_Unknown5F: channel 5, Sfx_Unknown5F_Ch5 channel 6, Sfx_Unknown5F_Ch6 Sfx_Sandstorm: - channel 8, Sfx_Sandstorm_Ch8 ; aka Sfx_Unknown5F_Ch8 + channel 8, Sfx_Sandstorm_Ch8 + assert Sfx_Sandstorm_Ch8 == Sfx_Unknown5F_Ch8 Sfx_HangUp: channel_count 1 @@ -486,10 +488,14 @@ Sfx_Elevator: Sfx_LevelUp: Sfx_DexFanfare5079: channel_count 4 - channel 5, Sfx_LevelUp_Ch5 ; aka Sfx_DexFanfare5079_Ch5 - channel 6, Sfx_LevelUp_Ch6 ; aka Sfx_DexFanfare5079_Ch6 - channel 7, Sfx_LevelUp_Ch7 ; aka Sfx_DexFanfare5079_Ch7 - channel 8, Sfx_LevelUp_Ch8 ; aka Sfx_DexFanfare5079_Ch8 + channel 5, Sfx_LevelUp_Ch5 + channel 6, Sfx_LevelUp_Ch6 + channel 7, Sfx_LevelUp_Ch7 + channel 8, Sfx_LevelUp_Ch8 + assert Sfx_LevelUp_Ch5 == Sfx_DexFanfare5079_Ch5 + assert Sfx_LevelUp_Ch6 == Sfx_DexFanfare5079_Ch6 + assert Sfx_LevelUp_Ch7 == Sfx_DexFanfare5079_Ch7 + assert Sfx_LevelUp_Ch8 == Sfx_DexFanfare5079_Ch8 Sfx_LevelUp_Ch5: Sfx_DexFanfare5079_Ch5: diff --git a/audio/sfx_pointers.asm b/audio/sfx_pointers.asm index 35225607..8c3420e5 100644 --- a/audio/sfx_pointers.asm +++ b/audio/sfx_pointers.asm @@ -144,7 +144,7 @@ SFX: dba Sfx_MilkDrink dba Sfx_Present dba Sfx_MorningSun - dba Sfx_LevelUp ; aka Sfx_DexFanfare5079 + dba Sfx_LevelUp dba Sfx_KeyItem dba Sfx_Fanfare2 dba Sfx_RegisterPhoneNumber |