From 8a4d15ae472e4fd8068994d9e02fb0d65d2edbee Mon Sep 17 00:00:00 2001 From: weihuoya Date: Mon, 18 Mar 2019 19:48:21 +0800 Subject: [PATCH] Android: change runtime wiimote extension --- .../dolphinemu/activities/EmulationActivity.java | 7 +------ Source/Android/app/src/main/res/values/strings.xml | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index 880487c00e..1a633e3a52 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -821,23 +821,18 @@ public final class EmulationActivity extends AppCompatActivity (dialog, indexSelected) -> { editor.putInt("wiiController", indexSelected); - NativeLibrary.SetConfig("WiimoteNew.ini", "Wiimote1", "Extension", getResources().getStringArray(R.array.controllersValues)[indexSelected]); + NativeLibrary.ReloadWiimoteConfig(); }); builder.setPositiveButton(getString(R.string.ok), (dialogInterface, i) -> { editor.apply(); - mEmulationFragment.refreshInputOverlay(); - - Toast.makeText(getApplication(), R.string.emulation_controller_changed, Toast.LENGTH_SHORT) - .show(); }); AlertDialog alertDialog = builder.create(); alertDialog.show(); - } private void setIRSensitivity() diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index 9cf0ac1d45..273139d8c5 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -298,7 +298,6 @@ Relative Stick Center Rumble Choose Controller - You may have to reload the game after changing extensions. Swipe down from the top of the screen to access the menu. Reset Overlay Touch IR Pointer