From 9d468174cc752e31d06463a7fe7100a39ec86af7 Mon Sep 17 00:00:00 2001 From: AloXado320 Date: Sat, 24 Jan 2026 00:46:11 -0500 Subject: Build using C++17 and replace sha1 library --- src/utils/Decompressor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/Decompressor.cpp') diff --git a/src/utils/Decompressor.cpp b/src/utils/Decompressor.cpp index 934a84f..9181099 100644 --- a/src/utils/Decompressor.cpp +++ b/src/utils/Decompressor.cpp @@ -1,4 +1,5 @@ #include "Decompressor.h" +#include "TorchUtils.h" #include #include "spdlog/spdlog.h" @@ -15,7 +16,7 @@ std::unordered_map gCachedChunks; DataChunk* Decompressor::Decode(const std::vector& buffer, const uint32_t offset, const CompressionType type, bool ignoreCache) { - if(!ignoreCache && gCachedChunks.contains(offset)){ + if(!ignoreCache && Torch::contains(gCachedChunks, offset)){ return gCachedChunks[offset]; } @@ -61,7 +62,7 @@ DataChunk* Decompressor::Decode(const std::vector& buffer, const uint32 } DataChunk* Decompressor::DecodeTKMK00(const std::vector& buffer, const uint32_t offset, const uint32_t size, const uint32_t alpha) { - if(gCachedChunks.contains(offset)){ + if(Torch::contains(gCachedChunks, offset)){ return gCachedChunks[offset]; } -- cgit v1.2.3