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);