Permalink
Browse files

Android: Set GC controller 1 to enabled if settings don't exist

If a user changes any config options before starting emulation then all SIDevices are set to 0.
This was added in PR 6267(commit 58ee9d2) to fix a bug.
  • Loading branch information...
zackhow committed Aug 16, 2018
1 parent 8e5c3d5 commit afc1876e494e47a494c02f1385fcc915e769ded7
@@ -481,7 +481,8 @@ private static void addGcPadSettingsIfTheyDontExist(HashMap<String, SettingSecti
String key = SettingsFile.KEY_GCPAD_TYPE + i;
if (coreSection.getSetting(key) == null)
{
Setting gcPadSetting = new IntSetting(key, Settings.SECTION_INI_CORE,0);
// Set GameCube controller 1 to enabled, all others disabled
Setting gcPadSetting = new IntSetting(key, Settings.SECTION_INI_CORE, i == 0 ? 6 : 0);
coreSection.putSetting(gcPadSetting);
}
}

0 comments on commit afc1876

Please sign in to comment.