Phasor card fixes:

. Reset/Power-cycle: revert to PH_Mockingboard mode
. Load state: set SSI263() to 'm_phasorMode'
This commit is contained in:
tomcw 2023-01-29 19:20:07 +00:00
parent d61d348f94
commit 749329b99f
1 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ void MockingboardCard::Reset(const bool powerCycle) // CTRL+RESET or power-cycle
m_MBSubUnit[subunit].state = AY_INACTIVE;
m_MBSubUnit[subunit].stateB = AY_INACTIVE;
m_MBSubUnit[subunit].ssi263.SetCardMode(m_phasorMode);
m_MBSubUnit[subunit].ssi263.SetCardMode(PH_Mockingboard); // Revert to PH_Mockingboard mode
m_MBSubUnit[subunit].ssi263.Reset();
}
@ -1205,7 +1205,7 @@ bool MockingboardCard::Phasor_LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT
AY8910_LoadSnapshot(yamlLoadHelper, subunit, AY8913_DEVICE_A, std::string("-A"));
AY8910_LoadSnapshot(yamlLoadHelper, subunit, AY8913_DEVICE_B, std::string("-B"));
}
pMB->ssi263.LoadSnapshot(yamlLoadHelper, PH_Phasor, version); // Pre: SetVotraxPhoneme()
pMB->ssi263.LoadSnapshot(yamlLoadHelper, m_phasorMode, version); // Pre: SetVotraxPhoneme()
pMB->nAYCurrentRegister = yamlLoadHelper.LoadUint(SS_YAML_KEY_AY_CURR_REG);