launcher: allow editing utf8 strings. now that saving is granular this at least won't ever cause anything to break just from launching the game.

This commit is contained in:
somewhatlurker
2019-10-06 13:49:51 +11:00
parent b3dce9a3b6
commit 32f6a4db26
@@ -517,9 +517,9 @@ public:
textbox->Scale(ScaleWidth, ScaleHeight); textbox->Scale(ScaleWidth, ScaleHeight);
// disable editing for utf8 mode because the ANSI hack used may not work correctly // disable editing for utf8 mode because the ANSI hack used may not work correctly
if (_useUtf8) { //if (_useUtf8) {
textbox->Enabled = false; // textbox->Enabled = false;
} //}
tooltip->SetToolTip(label, gcnew String(_description)); tooltip->SetToolTip(label, gcnew String(_description));
tooltip->SetToolTip(textbox, gcnew String(_description)); tooltip->SetToolTip(textbox, gcnew String(_description));
@@ -540,8 +540,8 @@ public:
virtual void SaveOption() virtual void SaveOption()
{ {
// disable saving for utf8 mode because the ANSI hack used may not work correctly // disable saving for utf8 mode because the ANSI hack used may not work correctly
if (_useUtf8) //if (_useUtf8)
return; // return;
System::String^ tempSysStr; System::String^ tempSysStr;
std::wstring tempWStr; std::wstring tempWStr;
@@ -714,10 +714,10 @@ public:
combobox->Scale(ScaleWidth, ScaleHeight); combobox->Scale(ScaleWidth, ScaleHeight);
// disable editing for utf8 mode because the ANSI hack used may not work correctly // disable editing for utf8 mode because the ANSI hack used may not work correctly
if (_useUtf8) { //if (_useUtf8) {
label->Enabled = false; // label->Enabled = false;
combobox->Enabled = false; // combobox->Enabled = false;
} //}
tooltip->SetToolTip(label, gcnew String(_description)); tooltip->SetToolTip(label, gcnew String(_description));
tooltip->SetToolTip(combobox, gcnew String(_description)); tooltip->SetToolTip(combobox, gcnew String(_description));
@@ -741,8 +741,8 @@ public:
virtual void SaveOption() virtual void SaveOption()
{ {
// disable saving for utf8 mode because the ANSI hack used may not work correctly // disable saving for utf8 mode because the ANSI hack used may not work correctly
if (_useUtf8) //if (_useUtf8)
return; // return;
System::String^ tempSysStr; System::String^ tempSysStr;
std::wstring tempWStr; std::wstring tempWStr;