summaryrefslogtreecommitdiff
path: root/src/randomcrap.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-06-09 23:33:45 +0200
committerTreeki <treeki@gmail.com>2013-06-09 23:33:45 +0200
commit450fab6ad76e5d23b7d898abd8c3e8112b6e3053 (patch)
tree7a8a0f2466c7c887c6588fd8c830afbe60ac9605 /src/randomcrap.S
parentb9d7e413c259abded8c16dee280c454b86449bab (diff)
downloadkamek-450fab6ad76e5d23b7d898abd8c3e8112b6e3053.tar.gz
kamek-450fab6ad76e5d23b7d898abd8c3e8112b6e3053.zip
half assed fix attempts for a few bugs
Diffstat (limited to 'src/randomcrap.S')
-rw-r--r--src/randomcrap.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/randomcrap.S b/src/randomcrap.S
index 6d347d5..1e09766 100644
--- a/src/randomcrap.S
+++ b/src/randomcrap.S
@@ -1,5 +1,19 @@
.text
+.global TryAndFixScoreGlitch
+TryAndFixScoreGlitch:
+ lwz r0, 0x4A10(r3)
+
+ lis r8, 0x8000
+ cmplw r3, r8
+ bgtlr
+
+ lwz r31, 0xC(r1)
+ lwz r0, 0x14(r1)
+ mtlr r0
+ addi r1, r1, 0x10
+ blr
+
.global ThwompNewAutoDestruction
ThwompNewAutoDestruction:
lfs f1, 0xB0(r31)