mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 16:49:27 +01:00
Add a new "queryConfig" native android function, so that the Java code can check
config options like rotation lock (config is implemented on the C++ side).
This commit is contained in:
1 parent
4818a85042
commit
c960fdb0b2
5 files changed
+17
-2
No files matched your search
@@ -147,6 +147,14 @@ extern "C" void Java_com_henrikrydgard_libnative_NativeApp_audioConfig
|
||||
optimalSampleRate = optimalSR;
|
||||
}
|
||||
|
||||
extern "C" jstring Java_com_henrikrydgard_libnative_NativeApp_queryConfig
|
||||
(JNIEnv *env, jclass, jstring jquery) {
|
||||
std::string query = GetJavaString(env, jquery);
|
||||
std::string result = NativeQueryConfig(query);
|
||||
jstring jresult = env->NewStringUTF(result.c_str());
|
||||
return jresult;
|
||||
}
|
||||
|
||||
extern "C" void Java_com_henrikrydgard_libnative_NativeApp_init
|
||||
(JNIEnv *env, jclass, jint dpi, jstring jdevicetype, jstring jlangRegion, jstring japkpath,
|
||||
jstring jdataDir, jstring jexternalDir, jstring jlibraryDir, jstring jshortcutParam,
|
||||
|
||||
Reference in new issue
Block a user