From d26dcdcf6e3f5fe2760fb75a21345f6f23150a98 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 7 Aug 2022 07:49:13 +0800 Subject: [PATCH] Change copy method to clipboard --- UI/GameScreen.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 2bad506283..c8f97060e8 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -91,11 +91,15 @@ void GameScreen::update() { UI::EventReturn GameScreen::OnCopyBaidMD5(UI::EventParams& e) { #if PPSSPP_PLATFORM(WINDOWS) || defined(USING_QT_UI) || PPSSPP_PLATFORM(ANDROID) auto sy = GetI18NCategory("System"); - System_InputBoxGetString(sy->T("Copy Baid md5"), MD5string, [](bool result, const std::string& value) { + //System_InputBoxGetString(sy->T("Copy Baid md5"), MD5string, [](bool result, const std::string& value) { //if (result) { //g_Config.sNickName = StripSpaces(value); // } - }); + //}); + System_SendMessage("setclipboardtext", MD5string.c_str()); + + tvMD5_->SetText(sy->T("Copied code")); + #endif return UI::EVENT_DONE; }