From 482722af0a057777786b86980e5c23c1b9ffa4f3 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 12 Jul 2023 01:10:35 +0200 Subject: [PATCH] Patches: fix logging for locations of node iterators --- rpcs3/util/yaml.cpp | 5 +++++ rpcs3/util/yaml.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/rpcs3/util/yaml.cpp b/rpcs3/util/yaml.cpp index dd3a47b6fe..52bf7ba89d 100644 --- a/rpcs3/util/yaml.cpp +++ b/rpcs3/util/yaml.cpp @@ -76,6 +76,11 @@ std::string get_yaml_node_location(YAML::Node node) } } +std::string get_yaml_node_location(const YAML::detail::iterator_value& it) +{ + return get_yaml_node_location(it.first); +} + template u32 get_yaml_node_value(YAML::Node, std::string&); template u64 get_yaml_node_value(YAML::Node, std::string&); template s64 get_yaml_node_value(YAML::Node, std::string&); diff --git a/rpcs3/util/yaml.hpp b/rpcs3/util/yaml.hpp index 98c43a33af..51a577c741 100644 --- a/rpcs3/util/yaml.hpp +++ b/rpcs3/util/yaml.hpp @@ -28,3 +28,4 @@ T get_yaml_node_value(YAML::Node node, std::string& error_message); // Get the location of the node in the document std::string get_yaml_node_location(YAML::Node node); +std::string get_yaml_node_location(const YAML::detail::iterator_value& it);