Skip to content

Commit

Permalink
60FPS: Fix BATTLE mode outro fading speed
Browse files Browse the repository at this point in the history
  • Loading branch information
tangtang95 authored and julianxhokaxhiu committed Nov 1, 2022
1 parent 8b25cb9 commit 81b9472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Core: Fix Barret's eyebrow not loading ( https://github.com/julianxhokaxhiu/FFNx/issues/107 )
- 60FPS: Fix fading speed in FIELD mode screen transitions ( https://github.com/julianxhokaxhiu/FFNx/pull/503 )
- 60FPS: Fix fading out speed in BATTLE mode exit screen transition
- Renderer: Fixed graphical glitch happening in battle when 3d models rendered in front of UI ( https://github.com/julianxhokaxhiu/FFNx/issues/131 )
- Voice: Add play voice for enemy actions during BATTLE mode ( https://github.com/julianxhokaxhiu/FFNx/pull/502 )
- Widescreen: Allow the buster sword image on new game screen to support 16:9 ratio ( https://github.com/julianxhokaxhiu/FFNx/pull/506 )
Expand Down
9 changes: 6 additions & 3 deletions src/ff7/battle/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,12 @@ namespace ff7::battle
replace_call_function(ff7_externals.handle_camera_functions + 0x4B, run_camera_position_script);

// Battle outro camera frame fix: patch DAT_009AE138 (frames to wait before closing battle mode)
patch_multiply_code<byte>(ff7_externals.battle_sub_430DD0 + 0x3DE, battle_frame_multiplier);
patch_multiply_code<byte>(ff7_externals.battle_sub_430DD0 + 0x361, battle_frame_multiplier);
patch_multiply_code<byte>(ff7_externals.battle_sub_430DD0 + 0x326, battle_frame_multiplier);
patch_multiply_code<DWORD>(ff7_externals.battle_sub_430DD0 + 0x3DE, battle_frame_multiplier);
patch_multiply_code<DWORD>(ff7_externals.battle_sub_430DD0 + 0x361, battle_frame_multiplier);
patch_multiply_code<DWORD>(ff7_externals.battle_sub_430DD0 + 0x326, battle_frame_multiplier);

// Battle outro fading speed fix
patch_multiply_code<byte>(ff7_externals.battle_sub_430DD0 + 0x60E, battle_frame_multiplier);

// Battle intro camera frame fix: patch DAT_00BFD0F4 (frames to wait before atb starts)
patch_multiply_code<byte>(ff7_externals.battle_sub_429AC0 + 0x152, battle_frame_multiplier);
Expand Down

0 comments on commit 81b9472

Please sign in to comment.