MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / deserialiseHeader

Function deserialiseHeader

src/OpenLoco/src/Objects/ObjectIndex.cpp:293–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 }
292
293 static IndexHeader deserialiseHeader(Stream& stream)
294 {
295 IndexHeader header{};
296 header.version = stream.readValue<uint32_t>();
297
298 header.state.vanillaInstall = deserialiseFolderState(stream);
299 header.state.install = deserialiseFolderState(stream);
300 header.state.customObjects = deserialiseFolderState(stream);
301
302 header.fileSize = stream.readValue<uint32_t>();
303 header.numObjects = stream.readValue<uint32_t>();
304 return header;
305 }
306
307 static std::vector<ObjectIndexEntry> deserialiseIndex(Stream& stream)
308 {

Callers 1

tryLoadIndexFunction · 0.85

Calls 1

deserialiseFolderStateFunction · 0.85

Tested by

no test coverage detected