| 1513 | namespace Poseidon |
| 1514 | { |
| 1515 | |
| 1516 | LSError World::Load(const char* name, int message) |
| 1517 | { |
| 1518 | Fail("Text load obsolete"); |
| 1519 | GDebugger.NextAliveExpected(15 * 60 * 1000); |
| 1520 | ParamArchiveLoad ar(name); |
| 1521 | ar.FirstPass(); |
| 1522 | LSError err = Serialize(ar, message); |
| 1523 | if (err == LSOK) |
| 1524 | { |
| 1525 | ar.SecondPass(); |
| 1526 | err = Serialize(ar, message); |
| 1527 | } |
| 1528 | if (err == LSOK) |
| 1529 | { |
| 1530 | } |
| 1531 | else |
| 1532 | { |
| 1533 | ErrorMessage("Cannot load '%s'. Error '%s' at '%s'.", name, ar.GetErrorName(err), |
| 1534 | (const char*)ar.GetErrorContext()); |
| 1535 | } |
| 1536 | return err; |
| 1537 | } |
| 1538 | |
| 1539 | LSError World::Save(const char* name, int message) const |
no test coverage detected