| 263 | } |
| 264 | |
| 265 | bool 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 | } |