mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-08 02:13:45 -04:00
changes :)
This commit is contained in:
parent
20be0d06f4
commit
d74c04ea88
3 changed files with 20 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ if (ARCHITECTURE_arm64)
|
|||
target_link_libraries(yuzu-android PRIVATE adrenotools)
|
||||
endif()
|
||||
|
||||
target_link_libraries(yuzu-android PRIVATE OpenSSL::SSL cpp-jwt::cpp-jwt)
|
||||
target_link_libraries(yuzu-android PRIVATE FFmpeg::FFmpeg OpenSSL::SSL cpp-jwt::cpp-jwt)
|
||||
if (ENABLE_UPDATE_CHECKER)
|
||||
target_compile_definitions(yuzu-android PUBLIC ENABLE_UPDATE_CHECKER)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@
|
|||
#include <frontend_common/content_manager.h>
|
||||
#include <jni.h>
|
||||
|
||||
extern "C" {
|
||||
// Required for FFmpeg mediacodec
|
||||
#include <libavcodec/jni.h>
|
||||
}
|
||||
|
||||
#include "common/android/multiplayer/multiplayer.h"
|
||||
#include "common/android/android_common.h"
|
||||
#include "common/android/id_cache.h"
|
||||
|
|
@ -680,6 +685,16 @@ const char* fallback_cpu_detection() {
|
|||
|
||||
} // namespace
|
||||
|
||||
// referenced by common
|
||||
extern "C" {
|
||||
|
||||
jint InitFFmpegOnLoad(JavaVM *vm) {
|
||||
av_jni_set_java_vm(vm, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceChanged(JNIEnv* env, jobject instance,
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
#include "video_core/rasterizer_interface.h"
|
||||
#include "common/android/multiplayer/multiplayer.h"
|
||||
#include <network/network.h>
|
||||
// Required for FFmpeg mediacodec
|
||||
#include <libavcodec/jni.h>
|
||||
|
||||
static JavaVM *s_java_vm;
|
||||
static jclass s_native_library_class;
|
||||
|
|
@ -428,9 +426,12 @@ namespace Common::Android {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
// see on src/android/app/src/main/jni/native.cpp
|
||||
jint InitFFmpegOnLoad(JavaVM *vm);
|
||||
|
||||
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
s_java_vm = vm;
|
||||
av_jni_set_java_vm(vm, NULL);
|
||||
InitFFmpegOnLoad(vm);
|
||||
|
||||
JNIEnv *env;
|
||||
if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION) != JNI_OK)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue