From 7c93abed9a0fd82de1b5b05abf27e60d245c3509 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 31 Jan 2024 11:17:29 -0600 Subject: Added auto texture size calculation --- src/Companion.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index ba0df34..ae568ef 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -64,12 +64,14 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar auto type = GetSafeNode(node, "type"); std::transform(type.begin(), type.end(), type.begin(), ::toupper); + spdlog::set_pattern(regular); if(node["offset"]) { auto offset = node["offset"].as(); - SPDLOG_INFO("[{}] Processing {} at 0x{:X}", type, name, offset); + SPDLOG_INFO("- [{}] Processing {} at 0x{:X}", type, name, offset); } else { - SPDLOG_INFO("[{}] Processing {}", type, name); + SPDLOG_INFO("- [{}] Processing {}", type, name); } + spdlog::set_pattern(line); auto factory = this->GetFactory(type); if(!factory.has_value()){ @@ -97,6 +99,9 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar std::replace(doutput.begin(), doutput.end(), '\\', '/'); this->gAssetDependencies[this->gCurrentFile][fst].second = true; this->ExtractNode(snd.first, doutput, binary); + spdlog::set_pattern(regular); + SPDLOG_INFO("------------------------------------------------"); + spdlog::set_pattern(line); } switch (this->gConfig.exporterType) { -- cgit v1.2.3