mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Android: Add content provider support to File::ScanDirectoryTree
This commit is contained in:
parent
525268f043
commit
2126f62111
6 changed files with 255 additions and 22 deletions
|
@ -46,6 +46,7 @@ static jmethodID s_content_handler_open_fd;
|
|||
static jmethodID s_content_handler_delete;
|
||||
static jmethodID s_content_handler_get_size_and_is_directory;
|
||||
static jmethodID s_content_handler_get_display_name;
|
||||
static jmethodID s_content_handler_get_child_names;
|
||||
|
||||
static jclass s_network_helper_class;
|
||||
static jmethodID s_network_helper_get_network_ip_address;
|
||||
|
@ -222,6 +223,11 @@ jmethodID GetContentHandlerGetDisplayName()
|
|||
return s_content_handler_get_display_name;
|
||||
}
|
||||
|
||||
jmethodID GetContentHandlerGetChildNames()
|
||||
{
|
||||
return s_content_handler_get_child_names;
|
||||
}
|
||||
|
||||
jclass GetNetworkHelperClass()
|
||||
{
|
||||
return s_network_helper_class;
|
||||
|
@ -323,6 +329,8 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
|
|||
s_content_handler_class, "getSizeAndIsDirectory", "(Ljava/lang/String;)J");
|
||||
s_content_handler_get_display_name = env->GetStaticMethodID(
|
||||
s_content_handler_class, "getDisplayName", "(Ljava/lang/String;)Ljava/lang/String;");
|
||||
s_content_handler_get_child_names = env->GetStaticMethodID(
|
||||
s_content_handler_class, "getChildNames", "(Ljava/lang/String;)[Ljava/lang/String;");
|
||||
|
||||
const jclass network_helper_class =
|
||||
env->FindClass("org/dolphinemu/dolphinemu/utils/NetworkHelper");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue