Skip to content

Commit

Permalink
FF7: Fix naming screen when Steam Input is enabled (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-trebacz committed Nov 21, 2023
1 parent a304000 commit a8d102e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
## FF7 Steam

- Common: Fix a softlock when trying to change in-game Controller setting to "Normal" (by disabling this option)
- Input: Fix character naming screen not working correctly when Steam Input is enabled

## FF8

Expand Down
8 changes: 7 additions & 1 deletion src/ff7_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,13 @@ void ff7_init_hooks(struct game_obj *_game_object)
}

// Disable "Normal" setting in Controller section of the Config menu (it softlocks on Steam)
memset_code(ff7_externals.config_menu_sub + 0x8AC, 0x90, 0xE6);
memset_code(ff7_externals.config_menu_sub + 0x8AC, 0x90, 0xE6);

// Restore Steam release behavior on character name screen when using gamepads in Steam Input mode
// Aali driver used to patch out these three functions to fix this issue
replace_function(ff7_externals.set_default_input_settings_save, noop);
replace_function(ff7_externals.keyboard_name_input, noop);
replace_function(ff7_externals.restore_input_settings, noop);
}

//###############################
Expand Down

0 comments on commit a8d102e

Please sign in to comment.