mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix shortcut launching URL parsing on non-scoped-storage
This commit is contained in:
1 parent
6350ba6e30
commit
1055b83783
1 file changed
+8
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user