summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2023-08-17 15:10:35 -0600
committerKiritoDv <kiritodev01@gmail.com>2023-08-17 15:10:35 -0600
commitf3402d8c9fe789d3f8a43edbd2a07e06b17a292b (patch)
tree001035abe564409895a909c5d3b328203eb54d12 /src/utils
parente0cc88e760322823cd1cbe44612ac82059d43fd7 (diff)
Fixed windows compilation
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/MIODecoder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/MIODecoder.cpp b/src/utils/MIODecoder.cpp
index aed5eba..14f8eff 100644
--- a/src/utils/MIODecoder.cpp
+++ b/src/utils/MIODecoder.cpp
@@ -3,6 +3,7 @@
extern "C" {
#include <libmio0/mio0.h>
}
+#include <stdexcept>
std::unordered_map<uint32_t, std::vector<char>> MIO0Decoder::gCachedChunks;
@@ -11,7 +12,7 @@ std::vector<char>& MIO0Decoder::Decode(std::vector<uint8_t>& buffer, uint32_t of
mio0_header_t head;
if(!mio0_decode_header(in_buf, &head)){
- throw std::runtime_error("Invalid MIO0 header");
+ throw std::runtime_error("Failed to decode MIO0 header");
}
uint8_t* decompressed = new uint8_t[head.dest_size];