mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
Android: Add content provider support to File::ScanDirectoryTree
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user