mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-23 05:49:43 +00:00
Pad: Save state support
This commit is contained in:
parent
8cd75a4937
commit
53e755aa68
@ -22,6 +22,11 @@ void Pad::Reset()
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ private:
|
||||
|
||||
union JOY_CTRL
|
||||
{
|
||||
u32 bits;
|
||||
u16 bits;
|
||||
|
||||
BitField<u16, bool, 0, 1> TXEN;
|
||||
BitField<u16, bool, 1, 1> SELECT;
|
||||
|
Loading…
Reference in New Issue
Block a user