summaryrefslogtreecommitdiff
path: root/src/utils/Decompressor.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-01-31 11:17:29 -0600
committerLywx <kiritodev01@gmail.com>2024-01-31 12:05:40 -0600
commit7c93abed9a0fd82de1b5b05abf27e60d245c3509 (patch)
tree5f4ff74d3ba29b2f372f260b75fa770e336fe507 /src/utils/Decompressor.h
parent6e5414f704cc26c9d45649188d1b6e51fcad46c3 (diff)
Added auto texture size calculation
Diffstat (limited to 'src/utils/Decompressor.h')
-rw-r--r--src/utils/Decompressor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/Decompressor.h b/src/utils/Decompressor.h
index 1bd5c05..4e3c298 100644
--- a/src/utils/Decompressor.h
+++ b/src/utils/Decompressor.h
@@ -26,7 +26,7 @@ struct DecompressedData {
class Decompressor {
public:
static DataChunk* Decode(const std::vector<uint8_t>& buffer, uint32_t offset, CompressionType type);
- static DecompressedData AutoDecode(YAML::Node& node, std::vector<uint8_t>& buffer);
+ static DecompressedData AutoDecode(YAML::Node& node, std::vector<uint8_t>& buffer, std::optional<size_t> size = std::nullopt);
static uint32_t TranslateAddr(uint32_t addr);
static bool IsSegmented(uint32_t addr);
static bool IsCompressed(YAML::Node& node);