diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-11-01 05:45:13 +0100 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-11-01 19:41:19 +0100 |
commit | 92418e909f7bb3d2c199b9392304f4bd1dea65bc (patch) | |
tree | d26f391569b105fc5c88305109696bbf515cf6f0 /src/android/app/src/main/jni/native_log.cpp | |
parent | Merge pull request #11934 from zhaobot/tx-update-20231101020822 (diff) | |
download | yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar.gz yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar.bz2 yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar.lz yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar.xz yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.tar.zst yuzu-92418e909f7bb3d2c199b9392304f4bd1dea65bc.zip |
Diffstat (limited to 'src/android/app/src/main/jni/native_log.cpp')
-rw-r--r-- | src/android/app/src/main/jni/native_log.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/android/app/src/main/jni/native_log.cpp b/src/android/app/src/main/jni/native_log.cpp new file mode 100644 index 000000000..33d691dc8 --- /dev/null +++ b/src/android/app/src/main/jni/native_log.cpp @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include <common/logging/log.h> +#include <jni.h> + +#include "android_common/android_common.h" + +extern "C" { + +void Java_org_yuzu_yuzu_1emu_utils_Log_debug(JNIEnv* env, jobject obj, jstring jmessage) { + LOG_DEBUG(Frontend, "{}", GetJString(env, jmessage)); +} + +void Java_org_yuzu_yuzu_1emu_utils_Log_warning(JNIEnv* env, jobject obj, jstring jmessage) { + LOG_WARNING(Frontend, "{}", GetJString(env, jmessage)); +} + +void Java_org_yuzu_yuzu_1emu_utils_Log_info(JNIEnv* env, jobject obj, jstring jmessage) { + LOG_INFO(Frontend, "{}", GetJString(env, jmessage)); +} + +void Java_org_yuzu_yuzu_1emu_utils_Log_error(JNIEnv* env, jobject obj, jstring jmessage) { + LOG_ERROR(Frontend, "{}", GetJString(env, jmessage)); +} + +void Java_org_yuzu_yuzu_1emu_utils_Log_critical(JNIEnv* env, jobject obj, jstring jmessage) { + LOG_CRITICAL(Frontend, "{}", GetJString(env, jmessage)); +} + +} // extern "C" |