summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-07 04:09:48 +0200
committerTreeki <treeki@gmail.com>2012-10-07 04:09:48 +0200
commit4dd473d8132d44f6d11e23fb682f419a4c2eab1e (patch)
tree5bcaac1bf9778443f06e154bd5c5c8e81f744eae /src
parentca0c9bcb0ff52cb1a9dbeb66a9065b855f1c365f (diff)
downloadkamek-4dd473d8132d44f6d11e23fb682f419a4c2eab1e.tar.gz
kamek-4dd473d8132d44f6d11e23fb682f419a4c2eab1e.zip
half assed fix for the hammer suit cap thing
Diffstat (limited to '')
-rw-r--r--src/poweruphax.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/poweruphax.S b/src/poweruphax.S
index 34cca4b..7181b4d 100644
--- a/src/poweruphax.S
+++ b/src/poweruphax.S
@@ -29,6 +29,20 @@
.set f1,1; .set f30,30; .set f31,31
#endif
+.global DisableHatForHammer
+DisableHatForHammer:
+ lwz r0, 0x17C(r31)
+ clrlwi. r0, r0, 31
+ beq DontDrawTheFuckingHat_
+ lbz r0, 0x152(r31)
+ cmpwi r0, 7
+ beq DontDrawTheFuckingHat_
+ b DrawTheFuckingHat
+DontDrawTheFuckingHat_:
+ b DontDrawTheFuckingHat # this is a hack to avoid implementing R_PPC_REL14
+.extern DontDrawTheFuckingHat
+.extern DrawTheFuckingHat
+
.global GetInfoFromDumbTable
GetInfoFromDumbTable:
lis r3, SomeTable@h