diff options
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index a86e64a..0589c84 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -573,7 +573,7 @@ void Companion::ProcessFile(YAML::Node root) { if(assetNode["type"]){ const auto type = GetSafeNode<std::string>(assetNode, "type"); - if(type == "SAMPLE"){ + if(type == "NAUDIO:V0:SAMPLE"){ AudioManager::Instance->bind_sample(assetNode, output); } } @@ -597,10 +597,9 @@ void Companion::ProcessFile(YAML::Node root) { auto output = (this->gCurrentDirectory / entryName).string(); std::replace(output.begin(), output.end(), '\\', '/'); - if(node["type"]){ const auto type = GetSafeNode<std::string>(node, "type"); - if(type == "SAMPLE"){ + if(type == "NAUDIO:V0:SAMPLE"){ AudioManager::Instance->bind_sample(node, output); } } |
