diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-01-30 23:03:23 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-01-31 12:05:40 -0600 |
| commit | 4668cf08fb240da4abaafc073ba08d9d13ac0fa5 (patch) | |
| tree | 8ef2781da88920eeb1267225e73406e25a3c17b6 /src/Companion.cpp | |
| parent | 242f8acf212d143443dc2ce846507bdb82571902 (diff) | |
Refactored code and added per file config
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<std::string>(); + auto type = GetSafeNode<std::string>(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; } |
