From 6a8a6d15c0b874deabe0d886b8891af7d70fcbb4 Mon Sep 17 00:00:00 2001 From: Pipi86 <66808852+Pipi86@users.noreply.github.com> Date: Fri, 20 Sep 2024 20:11:42 -0300 Subject: [PATCH] [Kernel] Removed typos from xlast.h and xlast.cc --- src/xenia/kernel/util/xlast.cc | 16 ++++++++-------- src/xenia/kernel/util/xlast.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/xenia/kernel/util/xlast.cc b/src/xenia/kernel/util/xlast.cc index 29a75734b..872462c35 100644 --- a/src/xenia/kernel/util/xlast.cc +++ b/src/xenia/kernel/util/xlast.cc @@ -143,18 +143,18 @@ XLast::GetProductInformationAttributes() const { } std::vector XLast::GetSupportedLanguages() const { - std::vector launguages; + std::vector languages; std::string xpath = fmt::format( "/XboxLiveSubmissionProject/GameConfigProject/LocalizedStrings"); if (!HasXLast()) { - return launguages; + return languages; } const pugi::xpath_node node = parsed_xlast_->select_node(xpath.c_str()); if (!node) { - return launguages; + return languages; } const auto locale = node.node().children("SupportedLocale"); @@ -163,12 +163,12 @@ std::vector XLast::GetSupportedLanguages() const { for (const auto& language : language_mapping) { if (language.second == locale_name) { - launguages.push_back(language.first); + languages.push_back(language.first); } } } - return launguages; + return languages; } std::u16string XLast::GetLocalizedString(uint32_t string_id, @@ -308,7 +308,7 @@ XLastMatchmakingQuery* XLast::GetMatchmakingQuery( std::vector XLast::GetAllValuesFromNode( const pugi::xpath_node node, const std::string child_name, - const std::string attirbute_name) { + const std::string attribute_name) { std::vector result{}; const auto searched_child = node.node().child(child_name.c_str()); @@ -316,7 +316,7 @@ std::vector XLast::GetAllValuesFromNode( for (pugi::xml_node_iterator itr = searched_child.begin(); itr != searched_child.end(); itr++) { result.push_back(xe::string_util::from_string( - itr->attribute(attirbute_name.c_str()).value(), true)); + itr->attribute(attribute_name.c_str()).value(), true)); } return result; @@ -353,4 +353,4 @@ std::string XLast::GetLocaleStringFromLanguage(XLanguage language) const { } // namespace util } // namespace kernel -} // namespace xe \ No newline at end of file +} // namespace xe diff --git a/src/xenia/kernel/util/xlast.h b/src/xenia/kernel/util/xlast.h index 6624c7215..b0e65f775 100644 --- a/src/xenia/kernel/util/xlast.h +++ b/src/xenia/kernel/util/xlast.h @@ -88,7 +88,7 @@ class XLast { XLastMatchmakingQuery* GetMatchmakingQuery(uint32_t query_id) const; static std::vector GetAllValuesFromNode( const pugi::xpath_node node, const std::string child_name, - const std::string attirbute_name); + const std::string attribute_name); void Dump(std::string file_name) const;