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

Method LZOLoadFilter

src/saveload/saveload.cpp:2442–2445  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2440 * @param chain The next filter in this chain.
2441 */
2442 LZOLoadFilter(std::shared_ptr<LoadFilter> chain) : LoadFilter(std::move(chain))
2443 {
2444 if (lzo_init() != LZO_E_OK) SlError(STR_GAME_SAVELOAD_ERROR_BROKEN_INTERNAL_ERROR, "cannot initialize decompressor");
2445 }
2446
2447 size_t Read(uint8_t *buf, size_t ssize) override
2448 {

Callers

nothing calls this directly

Calls 1

SlErrorFunction · 0.85

Tested by

no test coverage detected