mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Android: Add option to disallow SD card writes
This commit is contained in:
parent
4c64e18b24
commit
1c89e61d53
@ -381,16 +381,20 @@ public final class SettingsFragmentPresenter
|
||||
private void addWiiSettings(ArrayList<SettingsItem> sl)
|
||||
{
|
||||
Setting wiiSDCard = null;
|
||||
Setting wiiSDWrites = null;
|
||||
Setting continuousScan = null;
|
||||
Setting wiimoteSpeaker = null;
|
||||
|
||||
SettingSection coreSection = mSettings.getSection(Settings.SECTION_INI_CORE);
|
||||
wiiSDCard = coreSection.getSetting(SettingsFile.KEY_WII_SD_CARD);
|
||||
wiiSDWrites = coreSection.getSetting(SettingsFile.KEY_WII_SD_CARD_ALLOW_WRITES);
|
||||
continuousScan = coreSection.getSetting(SettingsFile.KEY_WIIMOTE_SCAN);
|
||||
wiimoteSpeaker = coreSection.getSetting(SettingsFile.KEY_WIIMOTE_SPEAKER);
|
||||
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_WII_SD_CARD, Settings.SECTION_INI_CORE,
|
||||
R.string.insert_sd_card, R.string.insert_sd_card_description, true, wiiSDCard));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_WII_SD_CARD_ALLOW_WRITES, Settings.SECTION_INI_CORE,
|
||||
R.string.wii_sd_card_allow_writes, 0, true, wiiSDWrites));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_WIIMOTE_SCAN, Settings.SECTION_INI_CORE,
|
||||
R.string.wiimote_scanning, R.string.wiimote_scanning_description, true,
|
||||
continuousScan));
|
||||
|
@ -279,6 +279,7 @@ public final class SettingsFile
|
||||
public static final String KEY_WIIBIND_TURNTABLE_CROSSFADE_RIGHT = "TurntableCrossRight_";
|
||||
|
||||
public static final String KEY_WII_SD_CARD = "WiiSDCard";
|
||||
public static final String KEY_WII_SD_CARD_ALLOW_WRITES = "WiiSDCardAllowWrites";
|
||||
public static final String KEY_WIIMOTE_SCAN = "WiimoteContinuousScanning";
|
||||
public static final String KEY_WIIMOTE_SPEAKER = "WiimoteEnableSpeaker";
|
||||
|
||||
|
@ -134,6 +134,7 @@
|
||||
<string name="wii_submenu">Wii</string>
|
||||
<string name="insert_sd_card">Insert SD Card</string>
|
||||
<string name="insert_sd_card_description">Supports SD and SDHC. Default size is 128 MB.</string>
|
||||
<string name="wii_sd_card_allow_writes">Allow Writes to SD Card</string>
|
||||
<string name="wiimote_scanning">Wii Remote Continuous Scanning</string>
|
||||
<string name="wiimote_scanning_description">Leave this on if you are using a DolphinBar for real Wiimote support.</string>
|
||||
<string name="wiimote_speaker">Wii Remote Speaker</string>
|
||||
|
Loading…
Reference in New Issue
Block a user