[Kernel] Removed typos from xlast.h and xlast.cc
This commit is contained in:
parent
25e9836343
commit
6a8a6d15c0
|
@ -143,18 +143,18 @@ XLast::GetProductInformationAttributes() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<XLanguage> XLast::GetSupportedLanguages() const {
|
std::vector<XLanguage> XLast::GetSupportedLanguages() const {
|
||||||
std::vector<XLanguage> launguages;
|
std::vector<XLanguage> languages;
|
||||||
|
|
||||||
std::string xpath = fmt::format(
|
std::string xpath = fmt::format(
|
||||||
"/XboxLiveSubmissionProject/GameConfigProject/LocalizedStrings");
|
"/XboxLiveSubmissionProject/GameConfigProject/LocalizedStrings");
|
||||||
|
|
||||||
if (!HasXLast()) {
|
if (!HasXLast()) {
|
||||||
return launguages;
|
return languages;
|
||||||
}
|
}
|
||||||
|
|
||||||
const pugi::xpath_node node = parsed_xlast_->select_node(xpath.c_str());
|
const pugi::xpath_node node = parsed_xlast_->select_node(xpath.c_str());
|
||||||
if (!node) {
|
if (!node) {
|
||||||
return launguages;
|
return languages;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto locale = node.node().children("SupportedLocale");
|
const auto locale = node.node().children("SupportedLocale");
|
||||||
|
@ -163,12 +163,12 @@ std::vector<XLanguage> XLast::GetSupportedLanguages() const {
|
||||||
|
|
||||||
for (const auto& language : language_mapping) {
|
for (const auto& language : language_mapping) {
|
||||||
if (language.second == locale_name) {
|
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,
|
std::u16string XLast::GetLocalizedString(uint32_t string_id,
|
||||||
|
@ -308,7 +308,7 @@ XLastMatchmakingQuery* XLast::GetMatchmakingQuery(
|
||||||
|
|
||||||
std::vector<uint32_t> XLast::GetAllValuesFromNode(
|
std::vector<uint32_t> XLast::GetAllValuesFromNode(
|
||||||
const pugi::xpath_node node, const std::string child_name,
|
const pugi::xpath_node node, const std::string child_name,
|
||||||
const std::string attirbute_name) {
|
const std::string attribute_name) {
|
||||||
std::vector<uint32_t> result{};
|
std::vector<uint32_t> result{};
|
||||||
|
|
||||||
const auto searched_child = node.node().child(child_name.c_str());
|
const auto searched_child = node.node().child(child_name.c_str());
|
||||||
|
@ -316,7 +316,7 @@ std::vector<uint32_t> XLast::GetAllValuesFromNode(
|
||||||
for (pugi::xml_node_iterator itr = searched_child.begin();
|
for (pugi::xml_node_iterator itr = searched_child.begin();
|
||||||
itr != searched_child.end(); itr++) {
|
itr != searched_child.end(); itr++) {
|
||||||
result.push_back(xe::string_util::from_string<uint32_t>(
|
result.push_back(xe::string_util::from_string<uint32_t>(
|
||||||
itr->attribute(attirbute_name.c_str()).value(), true));
|
itr->attribute(attribute_name.c_str()).value(), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -88,7 +88,7 @@ class XLast {
|
||||||
XLastMatchmakingQuery* GetMatchmakingQuery(uint32_t query_id) const;
|
XLastMatchmakingQuery* GetMatchmakingQuery(uint32_t query_id) const;
|
||||||
static std::vector<uint32_t> GetAllValuesFromNode(
|
static std::vector<uint32_t> GetAllValuesFromNode(
|
||||||
const pugi::xpath_node node, const std::string child_name,
|
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;
|
void Dump(std::string file_name) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue