mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-03 14:54:20 +01:00
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:
parent
762ddfd07b
commit
02ba5c652b
@ -47,6 +47,8 @@ void Module::serialize(Archive& ar, const unsigned int file_version) {
|
|||||||
LoadInputDevices();
|
LoadInputDevices();
|
||||||
}
|
}
|
||||||
ar& state.hex;
|
ar& state.hex;
|
||||||
|
ar& circle_pad_old_x;
|
||||||
|
ar& circle_pad_old_y;
|
||||||
// Update events are set in the constructor
|
// Update events are set in the constructor
|
||||||
// Devices are set from the implementation (and are stateless afaik)
|
// Devices are set from the implementation (and are stateless afaik)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user