* Initial commit

* add shader-jit option

* add translate to word "graphics' for ptbr

* Native logger

* Bonk

* fix

---------

Co-authored-by: gabriel <gabriel>
Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
This commit is contained in:
Gabriel Machado 2024-02-01 11:46:15 -04:00 committed by GitHub
parent e6d012d05d
commit 28ca4cd795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 454 additions and 4 deletions

View file

@ -35,6 +35,13 @@ JNIEnv* jniEnv() {
extern "C" {
#define MAKE_SETTING(functionName, type, settingName) \
AlberFunction(void, functionName) (JNIEnv* env, jobject obj, type value) { emulator->getConfig().settingName = value; }
MAKE_SETTING(setShaderJitEnabled, jboolean, shaderJitEnabled)
#undef MAKE_SETTING
AlberFunction(void, Setup)(JNIEnv* env, jobject obj) { env->GetJavaVM(&jvm); }
AlberFunction(void, Pause)(JNIEnv* env, jobject obj) { emulator->pause(); }
AlberFunction(void, Resume)(JNIEnv* env, jobject obj) { emulator->resume(); }