forked from PhlexPlexico/mm3dr
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Include fast transform for masks as an option.
Thanks, Crispy_Baldy from Discord for the initial AR codes!
- Loading branch information
1 parent
450cee8
commit c0fc275
Showing
5 changed files
with
157 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
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
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,96 @@ | ||
.arm | ||
.text | ||
|
||
.global hook_FastTransformPatchOne | ||
hook_FastTransformPatchOne: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq defaultAnimationOne | ||
cmp r1,#0x0 | ||
strh r1,[r0,#0x92] | ||
blt 0x1EB58C | ||
mov r1,#0x0 | ||
b 0x1EB3C8 | ||
defaultAnimationOne: | ||
cmp r1,#0xFF | ||
bx lr | ||
|
||
.global hook_FastTransformPatchTwo | ||
hook_FastTransformPatchTwo: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq defaultAnimationTwo | ||
add r2,r1,#0x6 | ||
bx lr | ||
defaultAnimationTwo: | ||
add r2,r1,#0x1 | ||
bx lr | ||
|
||
.global hook_FastTransformPatchThree | ||
hook_FastTransformPatchThree: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq defaultAnimationThree | ||
tst r1,r2 | ||
bne 0x1EB58C | ||
mov r2,#0xFD | ||
mov r1,#0xDC | ||
strh r2,[r0,#0x54] | ||
strh r1,[r0,#0x56] | ||
strh r1,[r0,#0x58] | ||
strh r1,[r0,#0x5A] | ||
cmp r10,#0x1 | ||
b 0x1EB530 | ||
defaultAnimationThree: | ||
@ recheck the cmp value. | ||
tst r1,r2 | ||
beq 0x1EB58C | ||
bx lr | ||
|
||
.global hook_RemoveFastTransformSound | ||
hook_RemoveFastTransformSound: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq playTransformSound | ||
b 0x1EB58C | ||
playTransformSound: | ||
push {lr} | ||
bl 0x1D2374 | ||
pop {lr} | ||
bx lr | ||
|
||
.global hook_FastTransformPatchFour | ||
hook_FastTransformPatchFour: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq defaultAnimationFour | ||
add r1,r0,#0x3 | ||
bx lr | ||
defaultAnimationFour: | ||
add r1,r0,#0x1 | ||
bx lr | ||
|
||
.global hook_FastTransformPatchFive | ||
hook_FastTransformPatchFive: | ||
push {r0-r12, lr} | ||
bl SettingsNoAnimationCheck | ||
cmp r0,#0x0 | ||
pop {r0-r12, lr} | ||
beq defaultAnimationFive | ||
tst r0,r1 | ||
bne 0x1EC53C | ||
bx lr | ||
defaultAnimationFive: | ||
tst r0,r1 | ||
beq 0x1EC53C | ||
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,31 @@ | ||
.arm | ||
|
||
.section .patch_FastTransformPatchOne | ||
.global patch_FastTransformPatchOne | ||
patch_FastTransformPatchOne: | ||
bl hook_FastTransformPatchOne | ||
|
||
.section .patch_FastTransformPatchTwo | ||
.global patch_FastTransformPatchTwo | ||
patch_FastTransformPatchTwo: | ||
bl hook_FastTransformPatchTwo | ||
|
||
.section .patch_FastTransformPatchThree | ||
.global patch_FastTransformPatchThree | ||
patch_FastTransformPatchThree: | ||
bl hook_FastTransformPatchThree | ||
|
||
.section .patch_RemoveFastTransformSound | ||
.global patch_RemoveFastTransformSound | ||
patch_RemoveFastTransformSound: | ||
bl hook_RemoveFastTransformSound | ||
|
||
.section .patch_FastTransformPatchFour | ||
.global patch_FastTransformPatchFour | ||
patch_FastTransformPatchFour: | ||
bl hook_FastTransformPatchFour | ||
|
||
.section .patch_FastTransformPatchFive | ||
.global patch_FastTransformPatchFive | ||
patch_FastTransformPatchFive: | ||
bl hook_FastTransformPatchFive |
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