refactor: use convStringToWstring for text input instead of uint16 helpers

GetText now returns UTF-8 directly so callers go through simdutf via
convStringToWstring(). Remove dead uint16_to_wstring helpers.
This commit is contained in:
MatthewBeshay
2026-03-30 14:10:14 +11:00
parent e89198f56c
commit 95e0a14b36
9 changed files with 19 additions and 59 deletions

View File

@@ -1177,12 +1177,9 @@ int UIScene_LoadOrJoinMenu::KeyboardCompleteWorldNameCallback(void* lpParam,
UIScene_LoadOrJoinMenu* pClass = (UIScene_LoadOrJoinMenu*)lpParam;
pClass->m_bIgnoreInput = false;
if (bRes) {
std::uint16_t ui16Text[128];
ZeroMemory(ui16Text, 128 * sizeof(std::uint16_t));
InputManager.GetText(ui16Text);
const char* text = InputManager.GetText();
// check the name is valid
if (ui16Text[0] != 0) {
if (text[0] != '\0') {
#if (defined __PS3__ || defined __ORBIS__ || defined _DURANGO || \
defined(__PSVITA__))
// open the save and overwrite the metadata