From 7f8054855591b445dc28de3053e6c3c63a52a1df Mon Sep 17 00:00:00 2001 From: Florin9doi Date: Sat, 18 May 2024 09:58:25 +0300 Subject: [PATCH] PAD: Fix ldd_data transfer --- rpcs3/Emu/Cell/Modules/cellPad.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellPad.cpp b/rpcs3/Emu/Cell/Modules/cellPad.cpp index 3e0d338ffd59..48f33ba5d044 100644 --- a/rpcs3/Emu/Cell/Modules/cellPad.cpp +++ b/rpcs3/Emu/Cell/Modules/cellPad.cpp @@ -269,11 +269,7 @@ void pad_get_data(u32 port_no, CellPadData* data, bool get_periph_data = false) } else if (pad->ldd) { - pad->ldd_data = *data; - if (setting & CELL_PAD_SETTING_SENSOR_ON) - data->len = CELL_PAD_LEN_CHANGE_SENSOR_ON; - else - data->len = (setting & CELL_PAD_SETTING_PRESS_ON) ? CELL_PAD_LEN_CHANGE_PRESS_ON : CELL_PAD_LEN_CHANGE_DEFAULT; + *data = pad->ldd_data; return; } else