VS System: Add dipswitches to savestate data

This commit is contained in:
Sour 2018-07-26 18:57:26 -04:00
parent 1c1892543a
commit 642c20ab2c

View file

@ -33,7 +33,13 @@ void VsControlManager::StreamState(bool saving)
ControlManager::StreamState(saving);
VsInputType unusedInputType = VsInputType::Default;
Stream(_prgChrSelectBit, _protectionCounter, _refreshState, unusedInputType);
uint32_t dipSwitches = _console->GetSettings()->GetDipSwitches();
Stream(_prgChrSelectBit, _protectionCounter, _refreshState, unusedInputType, dipSwitches);
if(!saving) {
_console->GetSettings()->SetDipSwitches(dipSwitches);
}
}
void VsControlManager::GetMemoryRanges(MemoryRanges &ranges)