Skip to content

Commit

Permalink
Android: Reload Wii Remote settings on emulation start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebola16 committed Apr 10, 2020
1 parent 960ba4f commit af8ee4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -80,6 +80,8 @@ public void onCreate(Bundle savedInstanceState)
// So this fragment doesn't restart on configuration changes; i.e. rotation.
setRetainInstance(true);

NativeLibrary.ReloadWiimoteConfig();

mPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());

String[] gamePaths = getArguments().getStringArray(KEY_GAMEPATHS);
Expand Down
1 change: 1 addition & 0 deletions Source/Android/jni/MainAndroid.cpp
Expand Up @@ -597,6 +597,7 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_RefreshWiimo
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ReloadWiimoteConfig(JNIEnv* env,
jobject obj)
{
WiimoteReal::LoadSettings();
Wiimote::LoadConfig();
}

Expand Down

0 comments on commit af8ee4b

Please sign in to comment.