| 1743 | } |
| 1744 | |
| 1745 | void SaveGame::LoadHub(int index) |
| 1746 | { |
| 1747 | // Don't attempt to load hub data if level is a title level. |
| 1748 | if (index == 0) |
| 1749 | return; |
| 1750 | |
| 1751 | if (IsOnHub(index)) |
| 1752 | { |
| 1753 | // Load hub data. |
| 1754 | TENLog(fmt::format("Loading hub data for level #{}.", index), LogLevel::Info); |
| 1755 | Parse(Hub[index], true); |
| 1756 | } |
| 1757 | |
| 1758 | // Restore vehicle (also for cases when no hub data yet exists). |
| 1759 | InitializePlayerVehicle(*LaraItem); |
| 1760 | } |
| 1761 | |
| 1762 | bool SaveGame::IsOnHub(int index) |
| 1763 | { |
nothing calls this directly
no test coverage detected