Fix shortcut launching URL parsing on non-scoped-storage

This commit is contained in:
Henrik Rydgård committed 2025-06-08 19:30:17 +02:00
1 parent 6350ba6e30
commit 1055b83783
1 file changed
+8
+8
View File
@@ -1404,6 +1404,14 @@ extern "C" void JNICALL Java_org_ppsspp_ppsspp_NativeApp_sendMessageFromJava(JNI
return;
}
INFO_LOG(Log::System, "shortcutParam received: %s", prm.c_str());
prm = StripQuotes(prm);
// NOTE: The parameter can be a file:// URL, which we need to take care of here. Similar to in NativeApp.cpp, search for file://
if (startsWith(prm, "file:///")) {
std::string param = prm;
prm = UriDecode(prm.substr(7));
INFO_LOG(Log::IO, "Decoding '%s' to '%s'", param.c_str(), prm.c_str());
}
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, StripQuotes(prm));
} else {
ERROR_LOG(Log::System, "Got unexpected message from Java, ignoring: %s / %s", msg.c_str(), prm.c_str());