From 642c20ab2cf2263cb28e1ba2149a1367efc6cdfd Mon Sep 17 00:00:00 2001 From: Sour Date: Thu, 26 Jul 2018 18:57:26 -0400 Subject: [PATCH] VS System: Add dipswitches to savestate data --- Core/VsControlManager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Core/VsControlManager.cpp b/Core/VsControlManager.cpp index d16c1f09..9e076d9b 100644 --- a/Core/VsControlManager.cpp +++ b/Core/VsControlManager.cpp @@ -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)