Skip to content

Commit

Permalink
Merge pull request #177 from AppleWin/master
Browse files Browse the repository at this point in the history
Save-state: for MB, the SC01 sub-unit is only supported from v12
  • Loading branch information
audetto committed Jun 30, 2024
2 parents 757cdba + 72f0c03 commit 1254c3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/SSI263.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,13 @@ void SSI263::SC01_SaveSnapshot(YamlSaveHelper& yamlSaveHelper)

void SSI263::SC01_LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
{
if (version < 12)
{
m_votraxPhoneme = 0;
// NB. m_isVotraxPhoneme already set by SetVotraxPhoneme() by parent
return;
}

if (!yamlLoadHelper.GetSubMap(SS_YAML_KEY_SC01))
throw std::runtime_error("Card: Expected key: " SS_YAML_KEY_SC01);

Expand Down

0 comments on commit 1254c3c

Please sign in to comment.