summaryrefslogtreecommitdiff
path: root/src/factories/TextureFactory.cpp
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-03-27 20:26:02 -0600
committerLywx <kiritodev01@gmail.com>2024-04-01 10:58:47 -0600
commit12189ea04585b0b093b455b1b7e4cb29ba0a185d (patch)
treeea845fd272b83ca984a9b96c91a04604bd29634d /src/factories/TextureFactory.cpp
parentc2303489e81fb2c4d496822d9856e7665fefd45e (diff)
format node case-insensitive
Diffstat (limited to 'src/factories/TextureFactory.cpp')
-rw-r--r--src/factories/TextureFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp
index 2118e2e..6d304d5 100644
--- a/src/factories/TextureFactory.cpp
+++ b/src/factories/TextureFactory.cpp
@@ -258,11 +258,13 @@ ExportResult TextureModdingExporter::Export(std::ostream&write, std::shared_ptr<
std::optional<std::shared_ptr<IParsedData>> TextureFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) {
+ auto offset = GetSafeNode<uint32_t>(node, "offset");
auto format = GetSafeNode<std::string>(node, "format");
uint32_t width;
uint32_t height;
uint32_t size;
- auto offset = GetSafeNode<uint32_t>(node, "offset");
+
+ std::transform(format.begin(), format.end(), format.begin(), ::toupper);
if (format.empty()) {
SPDLOG_ERROR("Texture entry at {:X} in yaml missing format node\n\