summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbandoned Cart <twistedumbrella@gmail.com>2023-06-23 15:48:02 +0200
committerAbandoned Cart <twistedumbrella@gmail.com>2023-06-23 16:36:30 +0200
commita58a1403ba62f27f67ece97eadc0136834afbe29 (patch)
tree456fdab8df5c7e929d77f88f943c2b042698393f
parentMerge pull request #10811 from 8bitDream/pip_mute (diff)
downloadyuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar.gz
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar.bz2
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar.lz
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar.xz
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.tar.zst
yuzu-a58a1403ba62f27f67ece97eadc0136834afbe29.zip
Diffstat (limited to '')
-rw-r--r--src/android/app/src/main/jni/native.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index d576aac50..5d6d61f68 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -528,23 +528,24 @@ static Core::SystemResultStatus RunEmulation(const std::string& filepath) {
extern "C" {
-void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceChanged(JNIEnv* env, jclass clazz, jobject surf) {
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceChanged(JNIEnv* env, jobject instance,
+ jobject surf) {
EmulationSession::GetInstance().SetNativeWindow(ANativeWindow_fromSurface(env, surf));
EmulationSession::GetInstance().SurfaceChanged();
}
-void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceDestroyed(JNIEnv* env, jclass clazz) {
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceDestroyed(JNIEnv* env, jobject instance) {
ANativeWindow_release(EmulationSession::GetInstance().NativeWindow());
EmulationSession::GetInstance().SetNativeWindow(nullptr);
EmulationSession::GetInstance().SurfaceChanged();
}
-void Java_org_yuzu_yuzu_1emu_NativeLibrary_setAppDirectory(JNIEnv* env, jclass clazz,
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_setAppDirectory(JNIEnv* env, jobject instance,
jstring j_directory) {
Common::FS::SetAppDirectory(GetJString(env, j_directory));
}
-int Java_org_yuzu_yuzu_1emu_NativeLibrary_installFileToNand(JNIEnv* env, jclass clazz,
+int Java_org_yuzu_yuzu_1emu_NativeLibrary_installFileToNand(JNIEnv* env, jobject instance,
jstring j_file) {
return EmulationSession::GetInstance().InstallFileToNand(GetJString(env, j_file));
}