Skip to content

Commit

Permalink
[Skylanders]: Fix infinite fall softlock at high FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSamus committed Aug 28, 2024
1 parent d8d9bf7 commit c7e5d92
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/SkylandersSuperChargers/Mods/FPS/patch_FixInfiniteFall.asm
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 src/SkylandersSwapForce/Mods/FPS/patch_FixInfiniteFall.asm
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

0 comments on commit c7e5d92

Please sign in to comment.