From ae23a730b2213037d784b54fe82d40885e2281b7 Mon Sep 17 00:00:00 2001 From: coco875 Date: Wed, 9 Jul 2025 02:55:09 +0200 Subject: Update Companion.cpp --- src/Companion.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index e778494..2df1109 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -264,7 +264,6 @@ void Companion::ParseEnums(std::string& header) { std::optional Companion::ParseNode(YAML::Node& node, std::string& name) { auto type = GetTypeNode(node); - std::transform(type.begin(), type.end(), type.begin(), ::toupper); spdlog::set_pattern(regular); if(node["offset"]) { @@ -1469,7 +1468,7 @@ std::optional> Companion::GetSafeNodeByAddr( auto n_type = GetTypeNode(n); if(n_type != type) { - throw std::runtime_error("Requested node type does not match with the target node type at " + Torch::to_hex(addr, false) + " Found: " + ConvertType(n_type) + " Expected: " + ConvertType(type)); + throw std::runtime_error("Requested node type does not match with the target node type at " + Torch::to_hex(addr, false) + " Found: " + n_type + " Expected: " + type); } return node; -- cgit v1.2.3