From c967f85c7cc08649b937835bb0cd95d02768c072 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sun, 17 Mar 2024 18:27:18 -0600 Subject: Added full shindou support but crashes on sf64 --- src/Companion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index 7784fe7..c8a296a 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -166,7 +166,7 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar auto impl = factory->get(); auto exporter = impl->GetExporter(this->gConfig.exporterType); - if(!exporter.has_value()){ + if(!exporter.has_value() && type != "AUDIO:HEADER"){ SPDLOG_WARN("No exporter found for {}", name); return; } @@ -652,8 +652,8 @@ void Companion::Process() { this->ExtractNode(node, output, wrapper); } } else { - const auto offset = assetNode["offset"].as(); - if(gCurrentFileOffset) { + if(gCurrentFileOffset && assetNode["offset"]) { + const auto offset = assetNode["offset"].as(); if (IS_SEGMENTED(offset) == false) { assetNode["offset"] = (gCurrentSegmentNumber << 24) | offset; } -- cgit v1.2.3