mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Android: Add support to copy strings to clipboard
This commit is contained in:
1 parent
d95ae30717
commit
9a193261f4
3 files changed
+23
No files matched your search
@@ -30,6 +30,7 @@
|
||||
#include "Common/File/FileUtil.h"
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Common/System/System.h"
|
||||
#include "Common/System/OSD.h"
|
||||
#include "Common/System/Request.h"
|
||||
#include "Common/System/NativeApp.h"
|
||||
#include "Core/Config.h"
|
||||
@@ -161,6 +162,8 @@ void GameScreen::CreateViews() {
|
||||
char buffer[16];
|
||||
snprintf(buffer, sizeof(buffer), "%08X", crc);
|
||||
System_CopyStringToClipboard(buffer);
|
||||
// Success indication. Not worth a translatable string.
|
||||
g_OSD.Show(OSDType::MESSAGE_SUCCESS, buffer, 1.0f);
|
||||
return UI::EVENT_DONE;
|
||||
});
|
||||
tvCRCCopy_->SetVisibility(crcVisibility);
|
||||
|
||||
Reference in new issue
Block a user