2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 05:07:43 +00:00

Switch to lzokay library

This commit is contained in:
Jack Andersen
2018-12-19 17:45:48 -10:00
parent b7f35e0528
commit e716d05cec
11 changed files with 16 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
#include <athena/FileWriter.hpp>
#include <lzo/lzo1x.h>
#include <lzokay.hpp>
#include "MREA.hpp"
#include "../DNAMP1/MREA.hpp"
#include "DataSpec/DNACommon/EGMC.hpp"
@@ -47,8 +47,8 @@ void MREA::StreamReader::nextBlock() {
rem -= chunkSz;
} else {
m_source.readUBytesToBuf(m_compBuf.get(), chunkSz);
lzo_uint dsz = rem;
lzo1x_decompress(m_compBuf.get(), chunkSz, bufCur, &dsz, nullptr);
size_t dsz = rem;
lzokay::decompress(m_compBuf.get(), chunkSz, bufCur, dsz);
bufCur += dsz;
rem -= dsz;
}