From b7c45cfe13166a0cb26b245043f5dba4eb4c436d Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Sun, 6 Oct 2019 13:49:51 +1100 Subject: [PATCH] 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. --- .../source/plugins/Launcher/ConfigOption.h | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source-code/source/plugins/Launcher/ConfigOption.h b/source-code/source/plugins/Launcher/ConfigOption.h index 8e7bb0f..4c815e1 100644 --- a/source-code/source/plugins/Launcher/ConfigOption.h +++ b/source-code/source/plugins/Launcher/ConfigOption.h @@ -517,9 +517,9 @@ public: textbox->Scale(ScaleWidth, ScaleHeight); // disable editing for utf8 mode because the ANSI hack used may not work correctly - if (_useUtf8) { - textbox->Enabled = false; - } + //if (_useUtf8) { + // textbox->Enabled = false; + //} tooltip->SetToolTip(label, gcnew String(_description)); tooltip->SetToolTip(textbox, gcnew String(_description)); @@ -540,8 +540,8 @@ public: virtual void SaveOption() { // disable saving for utf8 mode because the ANSI hack used may not work correctly - if (_useUtf8) - return; + //if (_useUtf8) + // return; System::String^ tempSysStr; std::wstring tempWStr; @@ -714,10 +714,10 @@ public: combobox->Scale(ScaleWidth, ScaleHeight); // disable editing for utf8 mode because the ANSI hack used may not work correctly - if (_useUtf8) { - label->Enabled = false; - combobox->Enabled = false; - } + //if (_useUtf8) { + // label->Enabled = false; + // combobox->Enabled = false; + //} tooltip->SetToolTip(label, gcnew String(_description)); tooltip->SetToolTip(combobox, gcnew String(_description)); @@ -741,8 +741,8 @@ public: virtual void SaveOption() { // disable saving for utf8 mode because the ANSI hack used may not work correctly - if (_useUtf8) - return; + //if (_useUtf8) + // return; System::String^ tempSysStr; std::wstring tempWStr;