From 10cf77e8d624b18d8e9be7f6fd4c6b207da3f432 Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Tue, 11 Oct 2011 00:00:45 -0500 Subject: Fixed StopSound and renamed to StopSoundBasic for linker --- kamek_pal.x | 2 +- src/soundPlayer.S | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kamek_pal.x b/kamek_pal.x index 8e8b34c..7ef8799 100644 --- a/kamek_pal.x +++ b/kamek_pal.x @@ -43,7 +43,7 @@ SECTIONS { AnotherSoundRelatedFunction = 0x80198040; YetAnotherSoundPlayer = 0x80199100; CheckIfPlayingSound = 0x80196740; - StopSound = 0x801955E0; + StopSoundBasic = 0x801955E0; RelatedToPlayingSoundsAlongsideAnims = 0x80105350; diff --git a/src/soundPlayer.S b/src/soundPlayer.S index 5304330..0eb165a 100644 --- a/src/soundPlayer.S +++ b/src/soundPlayer.S @@ -27,7 +27,6 @@ # PlaySound(dActor_c *, int soundID) -# There's somehardcoding in here, might need to fix that for NTSC versions. .global PlaySound @@ -79,9 +78,12 @@ GoAwaySoundGuy: blr +# StopSound(int soundID) + .global StopSound StopSound: + mr r4, r3 lwz r3, 0xA768(r13) - b StopSound + b StopSoundBasic -- cgit v1.2.3