summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinspectredc <inspectredc@gmail.com>2024-04-01 02:41:06 +0100
committerLywx <kiritodev01@gmail.com>2024-03-31 19:54:13 -0600
commitefca38486f156f449866db41d7f5eafa27e0cee1 (patch)
tree69ce924a54a00e091327234641fc7fea4cea1128
parent9277c7aaf8fb3a4c141797abf46e97539b9ae475 (diff)
node tag change
-rw-r--r--src/factories/GenericArrayFactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/factories/GenericArrayFactory.cpp b/src/factories/GenericArrayFactory.cpp
index f9989d8..c44d0eb 100644
--- a/src/factories/GenericArrayFactory.cpp
+++ b/src/factories/GenericArrayFactory.cpp
@@ -96,7 +96,7 @@ GenericArray::GenericArray(std::vector<ArrayDatum> data) : mData(std::move(data)
ExportResult ArrayHeaderExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement) {
const auto symbol = GetSafeNode(node, "symbol", entryName);
- const auto type = GetSafeNode<std::string>(node, "type");
+ const auto type = GetSafeNode<std::string>(node, "array_type");
if(Companion::Instance->IsOTRMode()){
write << "static const char " << symbol << "[] = \"__OTR__" << (*replacement) << "\";\n\n";
@@ -109,7 +109,7 @@ ExportResult ArrayHeaderExporter::Export(std::ostream &write, std::shared_ptr<IP
ExportResult ArrayCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
const auto symbol = GetSafeNode(node, "symbol", entryName);
- const auto type = GetSafeNode<std::string>(node, "type");
+ const auto type = GetSafeNode<std::string>(node, "array_type");
const auto offset = GetSafeNode<uint32_t>(node, "offset");
auto array = std::static_pointer_cast<GenericArray>(raw);
@@ -196,7 +196,7 @@ ExportResult ArrayBinaryExporter::Export(std::ostream &write, std::shared_ptr<IP
std::optional<std::shared_ptr<IParsedData>> GenericArrayFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) {
std::vector<ArrayDatum> data;
const auto count = GetSafeNode<uint32_t>(node, "count");
- const auto type = GetSafeNode<std::string>(node, "type");
+ const auto type = GetSafeNode<std::string>(node, "array_type");
if (arrayTypeMap.find(type) == arrayTypeMap.end()) {
SPDLOG_ERROR("Unknown Generic Array type '{}'", type);