MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / LoadFromStream

Method LoadFromStream

src/openrct2/park/ParkFile.cpp:2839–2848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2837 }
2838
2839 ParkLoadResult LoadFromStream(
2840 IStream* stream, bool isScenario, bool skipObjectCheck = false, const u8string& path = {}) override
2841 {
2842 _parkFile = std::make_unique<ParkFile>();
2843 _parkFile->Load(*stream, skipObjectCheck);
2844
2845 auto result = ParkLoadResult(std::move(_parkFile->RequiredObjects));
2846 result.SemiCompatibleVersion = _parkFile->IsSemiCompatibleVersion(result.MinVersion, result.TargetVersion);
2847 return result;
2848 }
2849
2850 void Import(GameState_t& gameState) override
2851 {

Callers

nothing calls this directly

Calls 3

ParkLoadResultClass · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected