* Initialise this filter. * @param chain The next filter in this chain. */
| 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() |