From 7cafd78ffc3f30bcb0f790bc0236777fca0e7812 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sat, 27 Jul 2024 20:22:25 -0700 Subject: [PATCH] MainAndroid: Use JNI_FALSE instead of static_cast(false) --- Source/Android/jni/MainAndroid.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 23fc782aeb..2ca05572a8 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -420,8 +420,7 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_WriteJitBloc if (jit_interface.GetCore() == nullptr) { env->CallStaticVoidMethod(native_library_class, IDCache::GetDisplayToastMsg(), - ToJString(env, Common::GetStringT("JIT is not active")), - static_cast(false)); + ToJString(env, Common::GetStringT("JIT is not active")), JNI_FALSE); return; } const std::string filename = fmt::format("{}{}.txt", File::GetUserPath(D_DUMPDEBUG_JITBLOCKS_IDX), @@ -432,13 +431,13 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_WriteJitBloc env->CallStaticVoidMethod( native_library_class, IDCache::GetDisplayToastMsg(), ToJString(env, Common::FmtFormatT("Failed to open \"{0}\" for writing.", filename)), - static_cast(false)); + JNI_FALSE); return; } jit_interface.JitBlockLogDump(Core::CPUThreadGuard{system}, f.GetHandle()); env->CallStaticVoidMethod(native_library_class, IDCache::GetDisplayToastMsg(), ToJString(env, Common::FmtFormatT("Wrote to \"{0}\".", filename)), - static_cast(false)); + JNI_FALSE); } // Surface Handling @@ -701,7 +700,7 @@ JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ConvertD blob_reader = DiscIO::CreateBlobReader(in_path); if (!blob_reader) - return static_cast(false); + return JNI_FALSE; jobject jCallbackGlobal = env->NewGlobalRef(jCallback); Common::ScopeGuard scope_guard([jCallbackGlobal, env] { env->DeleteGlobalRef(jCallbackGlobal); });