summaryrefslogtreecommitdiff
path: root/src/creditsMgr.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/creditsMgr.S')
-rw-r--r--src/creditsMgr.S54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/creditsMgr.S b/src/creditsMgr.S
index cf5e809..fc675cb 100644
--- a/src/creditsMgr.S
+++ b/src/creditsMgr.S
@@ -51,10 +51,64 @@ AutoScrollInjector:
blr
+.global PlayerRotInjector
+PlayerRotInjector:
+ lis r9, isLockPlayerRotation@h
+ ori r9, r9, isLockPlayerRotation@l
+ lbz r9, 0(r9)
+ cmpwi r9, 1
+ bne dontOverridePlayerRot
+ lis r9, lockedPlayerRotation@h
+ ori r9, r9, lockedPlayerRotation@l
+ lha r7, 0(r9)
+dontOverridePlayerRot:
+ sth r7, 0xA(r1)
+ blr
+
+.global PlayerRotInjector2
+PlayerRotInjector2:
+ lis r9, isLockPlayerRotation@h
+ ori r9, r9, isLockPlayerRotation@l
+ lbz r9, 0(r9)
+ cmpwi r9, 1
+ bne dontOverridePlayerRot2
+ lis r9, lockedPlayerRotation@h
+ ori r9, r9, lockedPlayerRotation@l
+ lha r0, 0(r9)
+dontOverridePlayerRot2:
+ sth r0, 0xA(r1)
+ blr
+
+.global PlayerRotInjector3
+PlayerRotInjector3:
+ lis r9, isLockPlayerRotation@h
+ ori r9, r9, isLockPlayerRotation@l
+ lbz r9, 0(r9)
+ cmpwi r9, 1
+ bne dontOverridePlayerRot3
+ lis r9, lockedPlayerRotation@h
+ ori r9, r9, lockedPlayerRotation@l
+ lha r0, 0(r9)
+dontOverridePlayerRot3:
+ sth r0, 0x12(r1)
+ blr
+
+# FOR SOME FUN
+ # li r0, 0x6000
+ # sth r0, 0x12(r1)
+ # li r0, 0x4000
+ # sth r0, 0x10(r1)
+ # li r0, 0x8000
+ # sth r0, 0x14(r1)
+
.data
.global CameraLockEnabled
+.global isLockPlayerRotation
.global CameraLockPosition
+.global lockedPlayerRotation
CameraLockEnabled: .byte 0
+isLockPlayerRotation: .byte 0
+lockedPlayerRotation: .short 0
.align 4
CameraLockPosition: .float 0.0, 0.0 \ No newline at end of file