MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SlFindChunkHandler

Function SlFindChunkHandler

src/saveload/saveload.cpp:2304–2308  ·  view source on GitHub ↗

* Find the ChunkHandler that will be used for processing the found * chunk in the savegame or in memory * @param id the chunk in question * @return returns the appropriate chunkhandler */

Source from the content-addressed store, hash-verified

2302 * @return returns the appropriate chunkhandler
2303 */
2304static const ChunkHandler *SlFindChunkHandler(uint32_t id)
2305{
2306 for (const ChunkHandler &ch : ChunkHandlers()) if (ch.id == id) return &ch;
2307 return nullptr;
2308}
2309
2310/** Load all chunks */
2311static void SlLoadChunks()

Callers 2

SlLoadChunksFunction · 0.85
SlLoadCheckChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected