Configure max path length

This commit is contained in:
BernardoGiordano 2019-03-10 08:40:35 +01:00
parent 6ebf692478
commit b91a1684eb

View file

@ -307,6 +307,7 @@ std::pair<bool, std::string> KeyboardManager::keyboard(const std::string& sugges
{
swkbdConfigMakePresetDefault(&kbd);
swkbdConfigSetInitialText(&kbd, suggestion.c_str());
kbd.arg.arg.stringLenMax = CUSTOM_PATH_LEN;
Result res = swkbdShow(&kbd, tmpoutstr, CUSTOM_PATH_LEN);
swkbdClose(&kbd);
if (R_SUCCEEDED(res))