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

Method VideoSaveSnapshot

source/Video.cpp:303–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void Video::VideoSaveSnapshot(YamlSaveHelper& yamlSaveHelper)
304{
305 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", VideoGetSnapshotStructName().c_str());
306 yamlSaveHelper.SaveBool(SS_YAML_KEY_ALT_CHARSET, g_nAltCharSetOffset ? true : false);
307 yamlSaveHelper.SaveHexUint32(SS_YAML_KEY_VIDEO_MODE, g_uVideoMode);
308 yamlSaveHelper.SaveUint(SS_YAML_KEY_CYCLES_THIS_FRAME, g_dwCyclesThisFrame);
309 yamlSaveHelper.SaveUint(SS_YAML_KEY_VIDEO_REFRESH_RATE, (UINT)GetVideoRefreshRate());
310}
311
312void Video::VideoLoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
313{

Callers 1

Snapshot_SaveStateFunction · 0.80

Calls 3

SaveBoolMethod · 0.80
SaveHexUint32Method · 0.80
SaveUintMethod · 0.80

Tested by

no test coverage detected