diff options
author | unknown <FreddyFunk@users.noreply.github.com> | 2019-02-08 06:45:50 +0100 |
---|---|---|
committer | FreddyFunk <FreddyFunk@users.noreply.github.com> | 2019-03-29 18:12:42 +0100 |
commit | c791192d649cf01483dbea9907c6d13909b8e5a3 (patch) | |
tree | 1b62eaf1f16edfe93ce84c61bed9357d55e1e4e6 /src/core/loader | |
parent | core: Do not link LZ4 to core. Use common/data_compression for nso segment decompression instead. (diff) | |
download | yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar.gz yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar.bz2 yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar.lz yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar.xz yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.tar.zst yuzu-c791192d649cf01483dbea9907c6d13909b8e5a3.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/nso.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 8aeabe409..df2fb7b7f 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -5,11 +5,11 @@ #include <cinttypes> #include <vector> -#include "common/data_compression.h" #include "common/common_funcs.h" #include "common/file_util.h" #include "common/hex_util.h" #include "common/logging/log.h" +#include "common/lz4_compression.h" #include "common/swap.h" #include "core/core.h" #include "core/file_sys/patch_manager.h" @@ -37,10 +37,10 @@ static_assert(sizeof(MODHeader) == 0x1c, "MODHeader has incorrect size."); std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data, const NSOSegmentHeader& header) { const std::vector<u8> uncompressed_data = - Compression::DecompressDataLZ4(compressed_data, header.size); + Common::Compression::DecompressDataLZ4(compressed_data, header.size); - ASSERT_MSG(uncompressed_data.size() == static_cast<int>(header.size), - "{} != {}", header.size, uncompressed_data.size()); + ASSERT_MSG(uncompressed_data.size() == static_cast<int>(header.size), "{} != {}", header.size, + uncompressed_data.size()); return uncompressed_data; } |