-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(patches): Adds some basic patches (#1)
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
UpdateCamera: | ||
type: branch | ||
link: true | ||
func: NormaliseCameraSpeed | ||
addr: 0x00267230 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LoadSeed: | ||
type: branch | ||
link: true | ||
func: ChangeSeed | ||
addr: 0x002C0278 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DashAttackParam: | ||
type: patch | ||
data: 0x0 | ||
addr: 0x008B9AC8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |