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 58ee9d2a78
) to fix a bug.
This commit is contained in:
parent
8e5c3d5b4e
commit
afc1876e49
|
@ -481,7 +481,8 @@ public final class SettingsFile
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue