summaryrefslogtreecommitdiff
path: root/src/factories/TextureFactory.cpp
diff options
context:
space:
mode:
authorAloXado320 <david.albujar.s.30@gmail.com>2026-01-24 00:46:11 -0500
committerLywx <kiritodev01@gmail.com>2026-01-24 00:15:07 -0600
commit9d468174cc752e31d06463a7fe7100a39ec86af7 (patch)
tree2a1d6a39d4a95b7a8e89dd71be95084dd217c2c5 /src/factories/TextureFactory.cpp
parent963a1f6830f1080a33f581c8b935c49060899214 (diff)
Build using C++17 and replace sha1 library
Diffstat (limited to 'src/factories/TextureFactory.cpp')
-rw-r--r--src/factories/TextureFactory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp
index 8e9d53c..b7d555b 100644
--- a/src/factories/TextureFactory.cpp
+++ b/src/factories/TextureFactory.cpp
@@ -1,5 +1,6 @@
#include "TextureFactory.h"
#include "utils/Decompressor.h"
+#include "utils/TorchUtils.h"
#include "spdlog/spdlog.h"
#include "Companion.h"
#include <iomanip>
@@ -286,7 +287,7 @@ std::optional<std::shared_ptr<IParsedData>> TextureFactory::parse(std::vector<ui
return std::nullopt;
}
- if(!sTextureFormats.contains(format)) {
+ if(!Torch::contains(sTextureFormats, format)) {
return std::nullopt;
}
@@ -362,7 +363,7 @@ std::optional<std::shared_ptr<IParsedData>> TextureFactory::parse_modding(std::v
return std::nullopt;
}
- if(!sTextureFormats.contains(format)) {
+ if(!Torch::contains(sTextureFormats, format)) {
return std::nullopt;
}