diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-11-27 21:25:49 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-11-27 21:25:49 -0600 |
| commit | ac3f20a78ce518c4076f00d13bf586d9fc27c5d0 (patch) | |
| tree | 56454b64515ef8cdaa6eae7f318337b8a24a7c73 /src/Companion.cpp | |
| parent | 714b555d13ee1f2cfe107353dbfd76b81c993b62 (diff) | |
Test audio xmls
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 6b813b5..07f0845 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1230,9 +1230,7 @@ std::optional<std::tuple<std::string, YAML::Node>> Companion::RegisterAsset(cons auto entry = std::make_tuple(output, node); this->gAddrMap[this->gCurrentFile][node["offset"].as<uint32_t>()] = entry; - - - + return entry; } @@ -1418,7 +1416,6 @@ std::optional<YAML::Node> Companion::AddAsset(YAML::Node asset) { const auto symbol = GetSafeNode<std::string>(asset, "symbol", ""); const auto decl = this->GetNodeByAddr(offset); - if(decl.has_value()) { return std::get<1>(decl.value()); } |
