Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(patches): Adds some basic patches #1

Merged
merged 1 commit into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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