Savestates/cellPad: Save old controller state

This commit is contained in:
Eladash 2023-12-30 20:23:54 +02:00 committed by Elad Ashkenazi
parent 847b721558
commit 2398e753bf
3 changed files with 5 additions and 2 deletions

View File

@ -58,6 +58,7 @@ extern void sys_io_serialize(utils::serial& ar);
pad_info::pad_info(utils::serial& ar)
: max_connect(ar)
, port_setting(ar)
, reported_info(ar)
{
sys_io_serialize(ar);
}
@ -66,7 +67,7 @@ void pad_info::save(utils::serial& ar)
{
USING_SERIALIZATION_VERSION(sys_io);
ar(max_connect, port_setting);
ar(max_connect, port_setting, reported_info);
sys_io_serialize(ar);
}

View File

@ -49,6 +49,8 @@ struct pad_data_internal
u32 device_type;
u32 pclass_type;
u32 pclass_profile;
ENABLE_BITWISE_SERIALIZATION;
};
struct CellPadInfo

View File

@ -79,7 +79,7 @@ SERIALIZATION_VER(cellGcm, 19, 1)
SERIALIZATION_VER(sysPrxForUser, 20, 1)
SERIALIZATION_VER(cellSaveData, 21, 1)
SERIALIZATION_VER(cellAudioOut, 22, 1)
SERIALIZATION_VER(sys_io, 23, 1)
SERIALIZATION_VER(sys_io, 23, 2)
// Misc versions for HLE/LLE not included so main version would not invalidated
SERIALIZATION_VER(LLE, 24, 1)