Skip to content

Commit

Permalink
feat(patches): Adds some basic patches (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadillzzz authored Aug 23, 2021
1 parent 30ff6fd commit 7b7b52d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cameraUpdate.hks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
UpdateCamera:
type: branch
link: true
func: NormaliseCameraSpeed
addr: 0x00267230
8 changes: 8 additions & 0 deletions changeSeed.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.text
.align 4

.global ChangeSeed
ChangeSeed:
ldrh r2, [r2]
add r2, #0x2
bx lr
5 changes: 5 additions & 0 deletions changeTable.hks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LoadSeed:
type: branch
link: true
func: ChangeSeed
addr: 0x002C0278
4 changes: 4 additions & 0 deletions fixLanceStaminaDrain.hks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DashAttackParam:
type: patch
data: 0x0
addr: 0x008B9AC8
15 changes: 15 additions & 0 deletions normaliseCameraSpeed.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.text
.align 4

.global NormaliseCameraSpeed
NormaliseCameraSpeed:
fmuls s0, s1, s3
ldr r0, =0x8119d90
ldr r0, [r0]
ldr r0, [r0,#0x14]
fmsr s4, r0
mov r0, #0x40000000
fmsr s5, r0
fdivs s4, s4, s5
fmuls s0, s0, s4
bx lr

0 comments on commit 7b7b52d

Please sign in to comment.