mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-26 04:47:05 +00:00
merge: upstream fix for world seeds not saving correctly (#1119)
This commit is contained in:
commit
4e323c8365
|
|
@ -557,8 +557,8 @@ int UIScene_LaunchMoreOptionsMenu::KeyboardCompleteSeedCallback(LPVOID lpParam,b
|
||||||
uint16_t pchText[128];
|
uint16_t pchText[128];
|
||||||
ZeroMemory(pchText, 128 * sizeof(uint16_t));
|
ZeroMemory(pchText, 128 * sizeof(uint16_t));
|
||||||
Win64_GetKeyboardText(pchText, 128);
|
Win64_GetKeyboardText(pchText, 128);
|
||||||
pClass->m_editSeed.setLabel((wchar_t *)pchText);
|
pClass->m_editSeed.setLabel(reinterpret_cast<wchar_t*>(pchText));
|
||||||
pClass->m_params->seed = (wchar_t *)pchText;
|
pClass->m_params->seed = static_cast<wstring>(reinterpret_cast<wchar_t*>(pchText));
|
||||||
#else
|
#else
|
||||||
#ifdef __PSVITA__
|
#ifdef __PSVITA__
|
||||||
uint16_t pchText[2048];
|
uint16_t pchText[2048];
|
||||||
|
|
@ -584,7 +584,7 @@ void UIScene_LaunchMoreOptionsMenu::getDirectEditInputs(vector<UIControl_TextInp
|
||||||
void UIScene_LaunchMoreOptionsMenu::onDirectEditFinished(UIControl_TextInput *input, UIControl_TextInput::EDirectEditResult result)
|
void UIScene_LaunchMoreOptionsMenu::onDirectEditFinished(UIControl_TextInput *input, UIControl_TextInput::EDirectEditResult result)
|
||||||
{
|
{
|
||||||
if (result == UIControl_TextInput::eDirectEdit_Confirmed)
|
if (result == UIControl_TextInput::eDirectEdit_Confirmed)
|
||||||
m_params->seed = input->getEditBuffer();
|
m_params->seed = static_cast<wstring>(input->getEditBuffer());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue