Skip to content

Commit

Permalink
Save-state: for MB, the SC01 sub-unit is only supported from v12
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcw committed Jun 29, 2024
1 parent a88040c commit 72f0c03
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 72f0c03

Please sign in to comment.