VS System: Add dipswitches to savestate data
This commit is contained in:
parent
1c1892543a
commit
642c20ab2c
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue