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

Method LoadSnapshot

source/SNESMAX.cpp:265–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool SNESMAXCard::LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
266{
267 if (version < 1 || version > kUNIT_VERSION)
268 ThrowErrorInvalidVersion(version);
269
270 m_buttonIndex = yamlLoadHelper.LoadUint(SS_YAML_KEY_BUTTON_INDEX);
271
272 // Initialise with no buttons pressed (loaded state maybe part way through reading the buttons)
273 m_controller1Buttons = 0x1ffff;
274 m_controller2Buttons = 0x1ffff;
275
276 return true;
277}

Callers

nothing calls this directly

Calls 1

LoadUintMethod · 0.80

Tested by

no test coverage detected