mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-15 23:01:39 +00:00
Android: Fix opening games with extensionless URI
This commit is contained in:
parent
e60665da94
commit
525268f043
6 changed files with 39 additions and 0 deletions
|
@ -112,6 +112,15 @@ jlong GetAndroidContentSizeAndIsDirectory(const std::string& uri)
|
|||
ToJString(env, uri));
|
||||
}
|
||||
|
||||
std::string GetAndroidContentDisplayName(const std::string& uri)
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
jobject display_name =
|
||||
env->CallStaticObjectMethod(IDCache::GetContentHandlerClass(),
|
||||
IDCache::GetContentHandlerGetDisplayName(), ToJString(env, uri));
|
||||
return display_name ? GetJString(env, reinterpret_cast<jstring>(display_name)) : "";
|
||||
}
|
||||
|
||||
int GetNetworkIpAddress()
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue