Switch from u32_le to u32, and truncate the user's input if it's too long(so that they still get something entered. It's probably confusing not to enter something).

This commit is contained in:
The Dax 2013-08-27 08:46:54 -04:00
parent 3c303925c9
commit d5c4f6673c

View File

@ -803,8 +803,8 @@ int PSPOskDialog::NativeKeyboard()
}
else
{
ERROR_LOG(HLE, "NativeKeyboard: input text too long. Try again.");
wcsncat(input, L"", wcslen(L""));
ERROR_LOG(HLE, "NativeKeyboard: input text too long(%d characters/glyphs max), truncating to game-requested length.", maxInputLength);
wcsncat(input, inputWide.c_str(), maxInputLength);
}
}
status = SCE_UTILITY_STATUS_FINISHED;