TLAC: revert to old style slider emulation when not using ps4 slider input

This commit is contained in:
somewhatlurker
2020-08-14 02:20:56 +10:00
parent 6fcb916e3c
commit 3141c651b6
9 changed files with 71 additions and 26 deletions
@@ -787,6 +787,12 @@ void ApplyPatches() {
{
InjectCode((void*)0x0000000140565E6B, { 0x90, 0x90 });
}
// The original slider update needs to run for hardware sliders to work -- only patch it when using emulation
if (!nHardwareSlider)
{
// Don't update the touch slider state so we can write our own
InjectCode((void*)0x000000014061579B, { 0x90, 0x90, 0x90, 0x8B, 0x42, 0xE0, 0x90, 0x90, 0x90 });
}
// Quick start
{
if (nQuickStart == 1) // skip the card/guest screen