diff options
author | Treeki <treeki@gmail.com> | 2012-07-10 01:06:28 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-07-10 01:06:28 +0200 |
commit | 4716dd060af05eecc5e9761a75af10e288b297a1 (patch) | |
tree | 9ba6ad0a25c4e79458c68a69f5c2fc8bc4c0dce7 /src/music.S | |
parent | c4d21117dda370659a8e8d15703b3b435276b919 (diff) | |
download | kamek-4716dd060af05eecc5e9761a75af10e288b297a1.tar.gz kamek-4716dd060af05eecc5e9761a75af10e288b297a1.zip |
the great extraordinary Custom Music Hack comes to your .. gits
Diffstat (limited to 'src/music.S')
-rw-r--r-- | src/music.S | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/music.S b/src/music.S deleted file mode 100644 index 93c57dc..0000000 --- a/src/music.S +++ /dev/null @@ -1,66 +0,0 @@ -.text - -# An Epic Music Hack - -.extern SoundRelatedClass -.extern sprintf -.global HaxMusic - -# Without Drums: Type 0 -# Athletic, Castle(Siro) - -# With Drums: Type 1 -# Overworld(Chijou), ... - -HaxMusic: - cmpwi r3, 100 - bltlr - - li r4, 0 # Type: No Yoshi Drums - cmpwi r3, 200 - blt Begin - - li r4, 1 -Begin: - - stwu r1, -0x10(r1) - mflr r0 - stw r0, 0x14(r1) - stw r31, 0xC(r1) - stw r30, 0x8(r1) - - mr r31, r3 - - lis r3, SoundRelatedClass@h - ori r3, r3, SoundRelatedClass@l - lwz r3, 0(r3) - lwz r30, 0x5CC(r3) - addis r30, r30, 3 - - subi r3, r30, 0x6A84 - lis r4, RegularMusic@h - ori r4, r4, RegularMusic@l - mr r5, r31 - bl sprintf - - subi r3, r30, 0x6A0C - lis r4, FastMusic@h - ori r4, r4, FastMusic@l - mr r5, r31 - bl sprintf - - li r3, 1 - - lwz r0, 0x14(r1) - lwz r31, 0xC(r1) - lwz r30, 0x8(r1) - mtlr r0 - addi r1, r1, 0x10 - blr - - -.data -RegularMusic: .string "stream/theme%03d.brstm" -FastMusic: .string "stream/theme%03d_fast.brstm" - - |