Android: Add the ability to add cheats

This commit is contained in:
JosJuice
2021-08-10 13:51:32 +02:00
parent 6934b9a21d
commit 404eb13e2f
14 changed files with 257 additions and 30 deletions

View File

@ -35,6 +35,14 @@ Java_org_dolphinemu_dolphinemu_features_cheats_model_GeckoCheat_finalize(JNIEnv*
delete GetPointer(env, obj);
}
JNIEXPORT jlong JNICALL
Java_org_dolphinemu_dolphinemu_features_cheats_model_GeckoCheat_createNew(JNIEnv* env, jobject obj)
{
auto* code = new Gecko::GeckoCode;
code->user_defined = true;
return reinterpret_cast<jlong>(code);
}
JNIEXPORT jstring JNICALL
Java_org_dolphinemu_dolphinemu_features_cheats_model_GeckoCheat_getName(JNIEnv* env, jobject obj)
{