From 97d5deba7a97b2c46efae99164ec4b40b79dfca3 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellPad.cpp b/rpcs3/Emu/Cell/Modules/cellPad.cpp index 3e0d338ffd59..fa7f4e02069d 100644 --- a/rpcs3/Emu/Cell/Modules/cellPad.cpp +++ b/rpcs3/Emu/Cell/Modules/cellPad.cpp @@ -269,11 +269,11 @@ 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; + std::memcpy(data->button, pad->ldd_data.button, data->len * sizeof(u16)); return; } else