Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace LZMA SDK with liblzma (from xz tools) #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

edo9300
Copy link
Owner

@edo9300 edo9300 commented Jun 28, 2022

Use liblzma to compress/decompress replays, this removes the dependency on the lzma sdk.
The library implements the same lzma format as the sdk, so the generated replays should be compatible between the library and the sdk.

Currently it will "fail" decoding old replays as the lirbary assumes all the lzma streams are terminated by the end of stream block, whereas the replays were being generated without such block (still valid in the lzma standard)
Use lzma_alone_decoder that allows decompressing streams without an end of stream block.
This requires feeding liblzma first a dummy lzma header so that it won't check for the eos block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant