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

Method LZOSaveFilter

src/saveload/saveload.cpp:2489–2492  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2487 * @param chain The next filter in this chain.
2488 */
2489 LZOSaveFilter(std::shared_ptr<SaveFilter> chain, uint8_t) : SaveFilter(std::move(chain))
2490 {
2491 if (lzo_init() != LZO_E_OK) SlError(STR_GAME_SAVELOAD_ERROR_BROKEN_INTERNAL_ERROR, "cannot initialize compressor");
2492 }
2493
2494 void Write(uint8_t *buf, size_t size) override
2495 {

Callers

nothing calls this directly

Calls 1

SlErrorFunction · 0.85

Tested by

no test coverage detected