mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Android: Add the ability to add cheats
This commit is contained in:
parent
6934b9a21d
commit
404eb13e2f
14 changed files with 257 additions and 30 deletions
|
@ -34,6 +34,14 @@ Java_org_dolphinemu_dolphinemu_features_cheats_model_PatchCheat_finalize(JNIEnv*
|
|||
delete GetPointer(env, obj);
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_cheats_model_PatchCheat_createNew(JNIEnv* env, jobject obj)
|
||||
{
|
||||
auto* patch = new PatchEngine::Patch;
|
||||
patch->user_defined = true;
|
||||
return reinterpret_cast<jlong>(patch);
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_cheats_model_PatchCheat_getName(JNIEnv* env, jobject obj)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue