1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00

Changed LZ4F_dctx* to LZ4F_decompressionContext_t for better compatibility.

This commit is contained in:
WW 2020-10-20 15:15:29 +00:00
parent 69b52cd702
commit d39aef3f5a

View file

@ -375,7 +375,7 @@ Files::IStreamPtr CompressedBSAFile::getFile(const FileRecord& fileRecord)
{ {
boost::scoped_array<char> buffer(new char[size]); boost::scoped_array<char> buffer(new char[size]);
fileStream->read(buffer.get(), size); fileStream->read(buffer.get(), size);
LZ4F_dctx* context = nullptr; LZ4F_decompressionContext_t context = nullptr;
LZ4F_createDecompressionContext(&context, LZ4F_VERSION); LZ4F_createDecompressionContext(&context, LZ4F_VERSION);
LZ4F_decompressOptions_t options = {}; LZ4F_decompressOptions_t options = {};
LZ4F_decompress(context, memoryStreamPtr->getRawData(), &uncompressedSize, buffer.get(), &size, &options); LZ4F_decompress(context, memoryStreamPtr->getRawData(), &uncompressedSize, buffer.get(), &size, &options);