From d03f9032c129e440e4f07d319be8b52500798e07 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 25 Jan 2025 21:49:32 -0600 Subject: Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures --- Source/Android/jni/Input/EmulatedController.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Source/Android/jni/Input/EmulatedController.cpp') 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 -- cgit v1.2.3