From 4668cf08fb240da4abaafc073ba08d9d13ac0fa5 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Tue, 30 Jan 2024 23:03:23 -0600 Subject: Refactored code and added per file config --- 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 17f4862..be70629 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1,7 +1,7 @@ #include "Companion.h" #include "storm/SWrapper.h" -#include "utils/MIODecoder.h" +#include "utils/Decompressor.h" #include "factories/sm64/AnimationFactory.h" #include "factories/sm64/DialogFactory.h" #include "factories/sm64/DictionaryFactory.h" @@ -61,7 +61,7 @@ void Companion::Init(const ExportType type) { void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binary) { std::ostringstream stream; - auto type = node["type"].as(); + auto type = GetSafeNode(node, "type"); std::transform(type.begin(), type.end(), type.begin(), ::toupper); if(node["offset"]) { @@ -408,7 +408,7 @@ void Companion::Process() { spdlog::set_pattern(regular); SPDLOG_INFO("------------------------------------------------"); - MIO0Decoder::ClearCache(); + Decompressor::ClearCache(); this->gCartridge = nullptr; Instance = nullptr; } -- cgit v1.2.3