-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Skylanders]: Fix infinite fall softlock at high FPS
- Loading branch information
1 parent
d8d9bf7
commit c7e5d92
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/SkylandersSuperChargers/Mods/FPS/patch_FixInfiniteFall.asm
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 @@ | ||
[SSC_FixInfiniteFall] | ||
moduleMatches = 0x25a11655 ; 1.6.1E | ||
.origin = codecave | ||
|
||
const_stuckDistance: | ||
.float 20*30/$targetFPS | ||
|
||
_getStuckDistance: | ||
lis r0, const_stuckDistance@ha | ||
lfs f13, const_stuckDistance@l(r0) | ||
blr | ||
|
||
[SSC_FixInfiniteFall_V97] | ||
moduleMatches = 0x25a11655 ; 1.6.1E | ||
0x02212da8 = bla _getStuckDistance |
21 changes: 21 additions & 0 deletions
21
src/SkylandersSwapForce/Mods/FPS/patch_FixInfiniteFall.asm
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,21 @@ | ||
[SSF_FixInfiniteFall] | ||
moduleMatches = 0xa0b35374, 0xb1f102ec | ||
.origin = codecave | ||
|
||
const_stuckDistance: | ||
.float 20*30/$targetFPS | ||
|
||
_getStuckDistance: | ||
lis r0, const_stuckDistance@ha | ||
lfs f0, const_stuckDistance@l(r0) | ||
blr | ||
|
||
[SSF_FixInfiniteFall_V16] | ||
moduleMatches = 0xa0b35374 | ||
|
||
0x0242729c = bla _getStuckDistance | ||
|
||
[SSF_FixInfiniteFall_V0] | ||
moduleMatches = 0xb1f102ec | ||
|
||
0x02427214 = bla _getStuckDistance |