mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
3c303925c9
commit
d5c4f6673c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue