MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / loadGame

Method loadGame

game/state/gamestate_serialize.cpp:456–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456bool 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
469bool GameState::serialize(SerializationArchive *archive) const
470{

Callers 2

loadModsMethod · 0.95
appendGameStateMethod · 0.95

Calls 2

deserializeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected