MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SC01_SaveSnapshot

Method SC01_SaveSnapshot

source/SSI263.cpp:1138–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136#define TYPE_SC01 "SC01"
1137
1138void SSI263::SC01_SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
1139{
1140 YamlSaveHelper::Label label(yamlSaveHelper, "%s:\n", SS_YAML_KEY_SC01);
1141
1142 std::string type = !m_hasSC01 ? TYPE_SC01_EMPTY : TYPE_SC01;
1143 yamlSaveHelper.SaveString(SS_YAML_KEY_SC01_TYPE, type);
1144
1145 if (m_hasSC01)
1146 {
1147 yamlSaveHelper.SaveHexUint8(SS_YAML_KEY_SC01_PHONEME, m_votraxPhoneme);
1148 yamlSaveHelper.SaveBool(SS_YAML_KEY_SC01_ACTIVE_PHONEME, m_isVotraxPhoneme);
1149 }
1150}
1151
1152void SSI263::SC01_LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
1153{

Callers

nothing calls this directly

Calls 3

SaveStringMethod · 0.80
SaveHexUint8Method · 0.80
SaveBoolMethod · 0.80

Tested by

no test coverage detected