mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Android: Use JNI for getting post-processsing shaders
The Java implementation of getting the list of post-processing shaders only looked in the Sys folder and not the User folder. This could be fixed in the Java implementation, but it's simpler to just call the C++ implementation instead.
This commit is contained in:
parent
ece3224715
commit
b7ba126db0
7 changed files with 67 additions and 47 deletions
35
Source/Android/jni/Config/PostProcessing.cpp
Normal file
35
Source/Android/jni/Config/PostProcessing.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2021 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#include "VideoCommon/PostProcessing.cpp"
|
||||
#include "jni/AndroidCommon/AndroidCommon.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_PostProcessing_getShaderList(JNIEnv* env,
|
||||
jclass)
|
||||
{
|
||||
return VectorToJStringArray(env, VideoCommon::PostProcessing::GetShaderList());
|
||||
}
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_PostProcessing_getAnaglyphShaderList(
|
||||
JNIEnv* env, jclass)
|
||||
{
|
||||
return VectorToJStringArray(env, VideoCommon::PostProcessing::GetAnaglyphShaderList());
|
||||
}
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_PostProcessing_getPassiveShaderList(
|
||||
JNIEnv* env, jclass)
|
||||
{
|
||||
return VectorToJStringArray(env, VideoCommon::PostProcessing::GetPassiveShaderList());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue