mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
fix UIScene_CreateWorldMenu
This commit is contained in:
parent
aa0a7777a3
commit
852d3aa1b8
|
|
@ -383,7 +383,6 @@ void UIScene_CreateWorldMenu::handleInput(int iPad, int key, bool repeat,
|
||||||
m_MoreOptionsParams.bAllowFriendsOfFriends = false;
|
m_MoreOptionsParams.bAllowFriendsOfFriends = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
break;
|
||||||
|
|
@ -734,27 +733,6 @@ int UIScene_CreateWorldMenu::KeyboardCompleteWorldNameCallback(void* lpParam,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int UIScene_CreateWorldMenu::KeyboardCompleteSeedCallback(void* lpParam,
|
|
||||||
bool bRes) {
|
|
||||||
UIScene_CreateWorldMenu* pClass = (UIScene_CreateWorldMenu*)lpParam;
|
|
||||||
pClass->m_bIgnoreInput = false;
|
|
||||||
// 4J HEG - No reason to set value if keyboard was cancelled
|
|
||||||
if (bRes) {
|
|
||||||
#ifdef __PSVITA__
|
|
||||||
// CD - Changed to 2048 [SCE_IME_MAX_TEXT_LENGTH]
|
|
||||||
std::uint16_t pchText[2048];
|
|
||||||
ZeroMemory(pchText, 2048 * sizeof(std::uint16_t));
|
|
||||||
#else
|
|
||||||
std::uint16_t pchText[128];
|
|
||||||
ZeroMemory(pchText, 128 * sizeof(std::uint16_t));
|
|
||||||
#endif
|
|
||||||
InputManager.GetText(pchText);
|
|
||||||
pClass->m_editSeed.setLabel((wchar_t*)pchText);
|
|
||||||
pClass->m_MoreOptionsParams.seed = (wchar_t*)pchText;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void UIScene_CreateWorldMenu::checkStateAndStartGame() {
|
void UIScene_CreateWorldMenu::checkStateAndStartGame() {
|
||||||
int primaryPad = ProfileManager.GetPrimaryPad();
|
int primaryPad = ProfileManager.GetPrimaryPad();
|
||||||
bool isSignedInLive = true;
|
bool isSignedInLive = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue