mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-29 04:44:15 +01:00
[BotW] Fix mastercycle charged boost in FPS++
Previously it wasn't possible to rev your mastercycle to get a charged speed boost. Should be fixed now!
This commit is contained in:
parent
2cfeafa453
commit
2b2e3f17ac
@ -183,8 +183,8 @@ fmuls f12, f7, f12
|
||||
|
||||
; Subtract the time that it took for the actual frame to render and make sure that it's not negative (which means a frame already took longer to render then the FPS limit)
|
||||
fsubs f12, f12, f10
|
||||
lis r12, const_0.0@ha
|
||||
lfs f7, const_0.0@l(r12)
|
||||
lis r11, const_0.0@ha
|
||||
lfs f7, const_0.0@l(r11)
|
||||
fcmpu cr0, f7, f12
|
||||
ble .+0x8
|
||||
fmr f12, f7
|
||||
|
@ -11,13 +11,13 @@ const_0.0:
|
||||
const_0.5:
|
||||
.float 0.5
|
||||
const_1:
|
||||
.float 1
|
||||
.float 1.0
|
||||
const_1.5:
|
||||
.float 1.5
|
||||
const_30:
|
||||
.float 30
|
||||
.float 30.0
|
||||
const_60:
|
||||
.float 60
|
||||
.float 60.0
|
||||
|
||||
timerTickSpeed:
|
||||
busSpeed:
|
||||
|
17
src/BreathOfTheWild/Mods/FPS++/patch_MastercycleSpeed.asm
Normal file
17
src/BreathOfTheWild/Mods/FPS++/patch_MastercycleSpeed.asm
Normal file
@ -0,0 +1,17 @@
|
||||
[BotW_MastercycleSpeed_V208]
|
||||
moduleMatches = 0x6267BFD0
|
||||
|
||||
.origin = codecave
|
||||
|
||||
0x100136B4 = originalMotorcycleBoostSpeed:
|
||||
|
||||
|
||||
_changeMotorcycleBoostSpeed:
|
||||
lfs f0, originalMotorcycleBoostSpeed@l(r9)
|
||||
lis r9, averageFPS1@ha
|
||||
lfs f8, averageFPS1@l(r9)
|
||||
fdivs f0, f0, f8
|
||||
blr
|
||||
|
||||
|
||||
0x0209FFC0 = bla _changeMotorcycleBoostSpeed
|
Loading…
Reference in New Issue
Block a user