diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-07-27 20:22:25 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-07-27 20:22:25 -0700 |
| commit | 7cafd78ffc3f30bcb0f790bc0236777fca0e7812 (patch) | |
| tree | ff4486b7166c15f311bd4941ba901f0cf5e97cbc /Source/Android/jni/MainAndroid.cpp | |
| parent | 5f4f974b48cde1965c2e46bb1e6abd3d79000271 (diff) | |
MainAndroid: Use JNI_FALSE instead of static_cast<jboolean>(false)
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 9 |
1 files 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<jboolean>(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<jboolean>(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<jboolean>(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<jboolean>(false); + return JNI_FALSE; jobject jCallbackGlobal = env->NewGlobalRef(jCallback); Common::ScopeGuard scope_guard([jCallbackGlobal, env] { env->DeleteGlobalRef(jCallbackGlobal); }); |
