mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 21:53:52 +00:00
Merge branch 'old-liblz4-fix' into 'master'
Ensure compatibility with old liblz4 See merge request OpenMW/openmw!355
This commit is contained in:
commit
db126a2688
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ Files::IStreamPtr CompressedBSAFile::getFile(const FileRecord& fileRecord)
|
|||
{
|
||||
boost::scoped_array<char> buffer(new char[size]);
|
||||
fileStream->read(buffer.get(), size);
|
||||
LZ4F_dctx* context = nullptr;
|
||||
LZ4F_decompressionContext_t context = nullptr;
|
||||
LZ4F_createDecompressionContext(&context, LZ4F_VERSION);
|
||||
LZ4F_decompressOptions_t options = {};
|
||||
LZ4F_decompress(context, memoryStreamPtr->getRawData(), &uncompressedSize, buffer.get(), &size, &options);
|
||||
|
|
Loading…
Reference in a new issue