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

Method SaveSnapshot

source/NoSlotClock.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void CNoSlotClock::SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
197{
198 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", GetSnapshotStructName().c_str());
199 yamlSaveHelper.SaveBool(SS_YAML_KEY_CLOCK_REGISTER_ENABLED, m_bClockRegisterEnabled);
200 yamlSaveHelper.SaveBool(SS_YAML_KEY_WRITE_ENABLED, m_bWriteEnabled);
201 yamlSaveHelper.SaveHexUint64(SS_YAML_KEY_CLOCK_REGISTER_MASK, m_ClockRegister.m_Mask);
202 yamlSaveHelper.SaveHexUint64(SS_YAML_KEY_CLOCK_REGISTER, m_ClockRegister.m_Register);
203 yamlSaveHelper.SaveHexUint64(SS_YAML_KEY_COMPARISON_REGISTER_MASK, m_ComparisonRegister.m_Mask);
204 yamlSaveHelper.SaveHexUint64(SS_YAML_KEY_COMPARISON_REGISTER, m_ComparisonRegister.m_Register);
205}
206
207void CNoSlotClock::LoadSnapshot(YamlLoadHelper& yamlLoadHelper)
208{

Callers

nothing calls this directly

Calls 2

SaveBoolMethod · 0.80
SaveHexUint64Method · 0.80

Tested by

no test coverage detected