Permalink
Browse files

Merge pull request #7295 from zackhow/wiicontroller

Android: Fix wiimote settings saving.
  • Loading branch information...
JosJuice committed Jul 31, 2018
2 parents 9545466 + be02a8e commit 14e156c29228b3b58ddb6c0c533a39c28b92cee3
@@ -332,7 +332,7 @@ private void addWiimoteSettings(ArrayList<SettingsItem> sl)
for (int i = 0; i < 4; i++)
{
// TODO This wiimote_0 + i business is quite the hack. It should work, but only if the definitions are kept together and in order.
Setting wiimoteSetting = mSettings.get(SettingsFile.SETTINGS_WIIMOTE).get(SettingsFile.SECTION_WIIMOTE + i).getSetting(SettingsFile.KEY_WIIMOTE_TYPE);
Setting wiimoteSetting = mSettings.get(SettingsFile.SETTINGS_WIIMOTE).get(SettingsFile.SECTION_WIIMOTE + (i + 1)).getSetting(SettingsFile.KEY_WIIMOTE_TYPE);
sl.add(new SingleChoiceSetting(SettingsFile.KEY_WIIMOTE_TYPE, SettingsFile.SECTION_WIIMOTE + i, SettingsFile.SETTINGS_WIIMOTE, R.string.wiimote_4 + i, 0, R.array.wiimoteTypeEntries, R.array.wiimoteTypeValues, 0, wiimoteSetting, MenuTag.getWiimoteMenuTag(i+4)));
}
}

0 comments on commit 14e156c

Please sign in to comment.