diff options
| author | JosJuice <josjuice@gmail.com> | 2021-01-18 12:22:26 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-01-27 20:10:07 +0100 |
| commit | 347551a01da643980fabfd3579ec34bb6cbb5419 (patch) | |
| tree | 7eab872f13982d6815c331f6787a9cfb508b983c /Source/Android/jni/AndroidCommon/IDCache.cpp | |
| parent | cd4ccda51c7b16be602ad32ffdf672a3de7cffeb (diff) | |
Android: Implement save overwrite confirmation
Diffstat (limited to 'Source/Android/jni/AndroidCommon/IDCache.cpp')
| -rw-r--r-- | Source/Android/jni/AndroidCommon/IDCache.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Android/jni/AndroidCommon/IDCache.cpp b/Source/Android/jni/AndroidCommon/IDCache.cpp index 4c6c4b2ce7..b5ca604c6e 100644 --- a/Source/Android/jni/AndroidCommon/IDCache.cpp +++ b/Source/Android/jni/AndroidCommon/IDCache.cpp @@ -56,6 +56,9 @@ static jmethodID s_network_helper_get_network_ip_address; static jmethodID s_network_helper_get_network_prefix_length; static jmethodID s_network_helper_get_network_gateway; +static jclass s_boolean_supplier_class; +static jmethodID s_boolean_supplier_get; + namespace IDCache { JNIEnv* GetEnvForThread() @@ -261,6 +264,11 @@ jmethodID GetNetworkHelperGetNetworkGateway() return s_network_helper_get_network_gateway; } +jmethodID GetBooleanSupplierGet() +{ + return s_boolean_supplier_get; +} + } // namespace IDCache #ifdef __cplusplus @@ -361,6 +369,11 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) s_network_helper_get_network_gateway = env->GetStaticMethodID(s_network_helper_class, "GetNetworkGateway", "()I"); + const jclass boolean_supplier_class = + env->FindClass("org/dolphinemu/dolphinemu/utils/BooleanSupplier"); + s_boolean_supplier_class = reinterpret_cast<jclass>(env->NewGlobalRef(boolean_supplier_class)); + s_boolean_supplier_get = env->GetMethodID(s_boolean_supplier_class, "get", "()Z"); + return JNI_VERSION; } |
