From 02ba5c652b7b82128e6c8358e23e65330f50830e Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Tue, 19 Dec 2023 00:43:44 -0800 Subject: [PATCH] Add circle_pad_old_* to savestates. (#7250) This is particularly relavant for TASing, not savestating these values will often cause dropped inputs on loading a savestate, due to the previous old circle pad values being used rather than the ones used during the savestate. For casual usage, this likely doesn't have much effect compared to the previous code, considering a casual user is probably not likely to care if inputs on the first frame of loading a savestate is dropped or not. --- src/core/hle/service/hid/hid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index a02e5a99b3..e2b0af35bf 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -47,6 +47,8 @@ void Module::serialize(Archive& ar, const unsigned int file_version) { LoadInputDevices(); } ar& state.hex; + ar& circle_pad_old_x; + ar& circle_pad_old_y; // Update events are set in the constructor // Devices are set from the implementation (and are stateless afaik) }