diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2025-01-25 21:49:32 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2025-03-22 14:53:02 -0500 |
| commit | d03f9032c129e440e4f07d319be8b52500798e07 (patch) | |
| tree | 8be51b82db6cde8050f55bbb35287d83b4de0c85 /Source/Android | |
| parent | 18979129f35f56de9f87e2a7919788679337abfa (diff) | |
Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures
Diffstat (limited to 'Source/Android')
| -rw-r--r-- | Source/Android/jni/Input/EmulatedController.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Android/jni/Input/EmulatedController.cpp b/Source/Android/jni/Input/EmulatedController.cpp index 8a76240dfd..7cfa0dc024 100644 --- a/Source/Android/jni/Input/EmulatedController.cpp +++ b/Source/Android/jni/Input/EmulatedController.cpp @@ -71,8 +71,10 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_EmulatedController_updateSingleControlReference( JNIEnv* env, jobject obj, jobject control_reference) { - return EmulatedControllerFromJava(env, obj)->UpdateSingleControlReference( - g_controller_interface, ControlReferenceFromJava(env, control_reference)); + ControllerEmu::EmulatedController* controller = EmulatedControllerFromJava(env, obj); + controller->GetConfig()->GenerateControllerTextures(); + return controller->UpdateSingleControlReference(g_controller_interface, + ControlReferenceFromJava(env, control_reference)); } JNIEXPORT void JNICALL @@ -83,6 +85,7 @@ Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_EmulatedContro controller->LoadDefaults(g_controller_interface); controller->UpdateReferences(g_controller_interface); + controller->GetConfig()->GenerateControllerTextures(); } JNIEXPORT void JNICALL @@ -96,6 +99,7 @@ Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_EmulatedContro controller->LoadConfig(§ion); controller->UpdateReferences(g_controller_interface); + controller->GetConfig()->GenerateControllerTextures(); } JNIEXPORT void JNICALL @@ -109,6 +113,7 @@ Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_EmulatedContro controller->LoadConfig(ini.GetOrCreateSection("Profile")); controller->UpdateReferences(g_controller_interface); + controller->GetConfig()->GenerateControllerTextures(); } JNIEXPORT void JNICALL |
