summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:12:28 -0400
committerGitHub <noreply@github.com>2025-03-23 15:12:28 -0400
commit2da255d8cdb2da67123296f5f091f808c696d021 (patch)
tree6cb532eb57ccc7565dac52beaa0901045c6f5c98 /Source/Android
parente93f0de8a4bcf9f201347fba21a12960ffa3c15f (diff)
parente18d98d4fc94830937f6011e15ad1a41a9eeb9dc (diff)
Merge pull request #13311 from iwubcode/dynamic_input_textures_reduce_image_writes
Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/jni/Input/EmulatedController.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Android/jni/Input/EmulatedController.cpp b/Source/Android/jni/Input/EmulatedController.cpp
index 45f6148f2b..befb6867a2 100644
--- a/Source/Android/jni/Input/EmulatedController.cpp
+++ b/Source/Android/jni/Input/EmulatedController.cpp
@@ -88,8 +88,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
@@ -100,6 +102,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
@@ -113,6 +116,7 @@ Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_EmulatedContro
controller->LoadConfig(&section);
controller->UpdateReferences(g_controller_interface);
+ controller->GetConfig()->GenerateControllerTextures();
}
JNIEXPORT void JNICALL
@@ -126,6 +130,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