| 454 | } |
| 455 | |
| 456 | bool GameState::loadGame(const UString &path) |
| 457 | { |
| 458 | |
| 459 | auto archive = SerializationArchive::readArchive(path); |
| 460 | if (!archive) |
| 461 | { |
| 462 | LogError("Failed to read \"%s\"", path); |
| 463 | return false; |
| 464 | } |
| 465 | |
| 466 | return deserialize(archive.get()); |
| 467 | } |
| 468 | |
| 469 | bool GameState::serialize(SerializationArchive *archive) const |
| 470 | { |
no test coverage detected