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

Method ZlibLoadFilter

src/saveload/saveload.cpp:2570–2573  ·  view source on GitHub ↗

* Initialise this filter. * @param chain The next filter in this chain. */

Source from the content-addressed store, hash-verified

2568 * @param chain The next filter in this chain.
2569 */
2570 ZlibLoadFilter(std::shared_ptr<LoadFilter> chain) : LoadFilter(std::move(chain))
2571 {
2572 if (inflateInit(&this->z) != Z_OK) SlError(STR_GAME_SAVELOAD_ERROR_BROKEN_INTERNAL_ERROR, "cannot initialize decompressor");
2573 }
2574
2575 /** Clean everything up. */
2576 ~ZlibLoadFilter()

Callers

nothing calls this directly

Calls 1

SlErrorFunction · 0.85

Tested by

no test coverage detected