Pad: Save state support

This commit is contained in:
Connor McLaughlin 2019-09-20 19:21:45 +10:00
parent 8cd75a4937
commit 53e755aa68
2 changed files with 6 additions and 1 deletions

View file

@ -22,6 +22,11 @@ void Pad::Reset()
bool Pad::DoState(StateWrapper& sw) bool Pad::DoState(StateWrapper& sw)
{ {
sw.Do(&m_JOY_CTRL.bits);
sw.Do(&m_JOY_STAT.bits);
sw.Do(&m_JOY_MODE.bits);
sw.Do(&m_RX_FIFO);
sw.Do(&m_TX_FIFO);
return !sw.HasError(); return !sw.HasError();
} }

View file

@ -31,7 +31,7 @@ private:
union JOY_CTRL union JOY_CTRL
{ {
u32 bits; u16 bits;
BitField<u16, bool, 0, 1> TXEN; BitField<u16, bool, 0, 1> TXEN;
BitField<u16, bool, 1, 1> SELECT; BitField<u16, bool, 1, 1> SELECT;