1
0
Fork 0

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.
This commit is contained in:
CasualPokePlayer 2023-12-19 00:43:44 -08:00 committed by GitHub
parent 762ddfd07b
commit 02ba5c652b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}