Android: Enable "Copy deep link" on the game screen, copying the content URI

PPSSPP has access to the URI, so a frontend or adb can launch the game with it,
which isn't true of a plain path on modern Android.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-20 12:42:07 +02:00
1 parent df76bae5dc
commit 55f02684f5
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ enum SystemProperty {
SYSPROP_HAS_LOGIN_DIALOG,
SYSPROP_HAS_TEXT_CLIPBOARD,
SYSPROP_HAS_TEXT_INPUT_DIALOG, // Indicates that System_InputBoxGetString is available.
SYSPROP_HAS_DEEP_LINKS, // ios-style deep links
SYSPROP_HAS_DEEP_LINKS, // iOS deep links, Android content URIs
SYSPROP_CAN_CREATE_SHORTCUT,
SYSPROP_CAN_SHOW_FILE,
+5
View File
@@ -63,6 +63,11 @@
// This is in an objective-C file.
#if PPSSPP_PLATFORM(IOS)
void copyDeepLinkForPath(std::string_view filePath);
#elif PPSSPP_PLATFORM(ANDROID)
// The path is a content URI that PPSSPP has access to, so frontends and adb can launch it.
void copyDeepLinkForPath(std::string_view filePath) {
System_CopyStringToClipboard(std::string(filePath));
}
#else
// dummy
void copyDeepLinkForPath(std::string_view) {}
+2
View File
@@ -404,6 +404,8 @@ bool System_GetPropertyBool(SystemProperty prop) {
return androidVersion >= 11; // honeycomb
case SYSPROP_HAS_TEXT_CLIPBOARD:
return true;
case SYSPROP_HAS_DEEP_LINKS:
return true; // The game's content URI, launchable through an intent.
case SYSPROP_CAN_LAUNCH_URL:
return true;
case SYSPROP_HAS_OPEN_DIRECTORY: