diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-03-10 15:51:51 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-03-10 15:58:45 -0600 |
| commit | ef6befae9a18ff8bf10f34af205ba696cb50e921 (patch) | |
| tree | a62727dc76645857eb1a2d0f66e61d77ea256e30 | |
| parent | 8d9374a113490ea89a8ae2e89f28837073326143 (diff) | |
Skipped autogenerated assets
| -rw-r--r-- | src/Companion.cpp | 4 | ||||
| -rw-r--r-- | src/factories/DisplayListFactory.cpp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 81044b3..b95566c 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -795,6 +795,10 @@ std::optional<std::vector<std::tuple<std::string, YAML::Node>>> Companion::GetNo for(auto& [addr, tpl] : this->gAddrMap[this->gCurrentFile]){ auto [name, node] = tpl; const auto n_type = GetSafeNode<std::string>(node, "type"); + if(node["autogen"]){ + SPDLOG_DEBUG("Skipping autogenerated asset {}", name); + continue; + } if(n_type == type){ nodes.push_back(tpl); } diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp index 2310588..4d9360f 100644 --- a/src/factories/DisplayListFactory.cpp +++ b/src/factories/DisplayListFactory.cpp @@ -345,6 +345,7 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint dl["type"] = "GFX"; dl["offset"] = ptr; dl["symbol"] = output; + dl["autogen"] = true; auto result = factory->parse(rom, dl); @@ -402,6 +403,7 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint light["type"] = "lights"; light["offset"] = ptr; light["symbol"] = output; + light["autogen"] = true; auto result = factory->parse(rom, light); if(result.has_value()){ Companion::Instance->RegisterAsset(output, light); @@ -467,6 +469,7 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint vtx["offset"] = ptr; vtx["count"] = nvtx; vtx["symbol"] = output; + vtx["autogen"] = true; auto result = factory->parse(rom, vtx); if(result.has_value()){ Companion::Instance->RegisterAsset(output, vtx); |
