2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 00:27:43 +00:00

Char16 refactor and GuiSys bug fixes

This commit is contained in:
Jack Andersen
2017-01-23 21:41:33 -10:00
parent f8853fbccf
commit 7a60151d3e
31 changed files with 262 additions and 242 deletions

View File

@@ -45,12 +45,12 @@ struct STRG : ISTRG
return search->second->at(idx);
return std::string();
}
inline std::wstring getUTF16(const FourCC& lang, size_t idx) const
inline std::u16string getUTF16(const FourCC& lang, size_t idx) const
{
auto search = langMap.find(lang);
if (search != langMap.end())
return hecl::UTF8ToWide(search->second->at(idx));
return std::wstring();
return hecl::UTF8ToChar16(search->second->at(idx));
return std::u16string();
}
inline hecl::SystemString getSystemString(const FourCC& lang, size_t idx) const
{