From de4241861633949f2e80566cefd789defbc162c5 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sat, 17 Oct 2026 01:09:18 -0600 Subject: Added gamecube support --- src/utils/Decompressor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/utils/Decompressor.cpp') diff --git a/src/utils/Decompressor.cpp b/src/utils/Decompressor.cpp index 1ad4375..a116b7a 100644 --- a/src/utils/Decompressor.cpp +++ b/src/utils/Decompressor.cpp @@ -101,8 +101,11 @@ DataChunk* Decompressor::Decode(const std::vector& buffer, const uint32 throw std::runtime_error("Failed to decode YAZ0"); } - gCachedChunks[offset] = new DataChunk{ decompressed, size }; - return gCachedChunks[offset]; + { + std::lock_guard lock(gDecompCacheMutex); + gCachedChunks[offset] = new DataChunk{ decompressed, size }; + return gCachedChunks[offset]; + } } default: throw std::runtime_error("Unknown compression type"); -- cgit v1.2.3