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

Method SaveSnapshot

source/LanguageCard.cpp:271–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void LanguageCardSlot0::SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
272{
273 if (!IsApple2PlusOrClone(GetApple2Type()))
274 {
275 _ASSERT(0);
276 LogFileOutput("Warning: Save-state attempted to save %s for //e or above\n", GetSnapshotCardName().c_str());
277 return; // No Language Card support for //e and above
278 }
279
280 YamlSaveHelper::Slot slot(yamlSaveHelper, GetSnapshotCardName(), m_slot, kUNIT_LANGUAGECARD_VER);
281 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", SS_YAML_KEY_STATE);
282
283 SaveLCState(yamlSaveHelper);
284
285 {
286 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", GetSnapshotMemStructName().c_str());
287 yamlSaveHelper.SaveMemory(m_pMemory, kMemBankSize);
288 }
289}
290
291bool LanguageCardSlot0::LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
292{

Callers

nothing calls this directly

Calls 5

IsApple2PlusOrCloneFunction · 0.85
GetApple2TypeFunction · 0.85
LogFileOutputFunction · 0.85
SaveMemoryMethod · 0.80
SaveMethod · 0.80

Tested by

no test coverage detected