Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8708 from Ebola16/Wii
Android: Add Insert SD Card and update the description
  • Loading branch information
JMC47 committed Apr 16, 2020
2 parents 55ed980 + a3ff20a commit 19fc43f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Expand Up @@ -378,13 +378,17 @@ private void addGameCubeSettings(ArrayList<SettingsItem> sl)

private void addWiiSettings(ArrayList<SettingsItem> sl)
{
Setting wiiSDCard = null;
Setting continuousScan = null;
Setting wiimoteSpeaker = null;

SettingSection coreSection = mSettings.getSection(Settings.SECTION_INI_CORE);
wiiSDCard = coreSection.getSetting(SettingsFile.KEY_WII_SD_CARD);
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, false, wiiSDCard));
sl.add(new CheckBoxSetting(SettingsFile.KEY_WIIMOTE_SCAN, Settings.SECTION_INI_CORE,
R.string.wiimote_scanning, R.string.wiimote_scanning_description, true,
continuousScan));
Expand Down
Expand Up @@ -273,6 +273,7 @@
public static final String KEY_WIIBIND_TURNTABLE_CROSSFADE_LEFT = "TurntableCrossLeft_";
public static final String KEY_WIIBIND_TURNTABLE_CROSSFADE_RIGHT = "TurntableCrossRight_";

public static final String KEY_WII_SD_CARD = "WiiSDCard";
public static final String KEY_WIIMOTE_SCAN = "WiimoteContinuousScanning";
public static final String KEY_WIIMOTE_SPEAKER = "WiimoteEnableSpeaker";

Expand Down
2 changes: 2 additions & 0 deletions Source/Android/app/src/main/res/values/strings.xml
Expand Up @@ -138,6 +138,8 @@
<string name="slot_a_device">GameCube Slot A Device</string>
<string name="slot_b_device">GameCube Slot B Device</string>
<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="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>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp
Expand Up @@ -62,7 +62,7 @@ void SDIOSlot0::OpenInternal()
m_card.Open(filename, "r+b");
if (!m_card)
{
WARN_LOG(IOS_SD, "Failed to open SD Card image, trying to create a new 128MB image...");
WARN_LOG(IOS_SD, "Failed to open SD Card image, trying to create a new 128 MB image...");
if (Common::SDCardCreate(128, filename))
{
INFO_LOG(IOS_SD, "Successfully created %s", filename.c_str());
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/Settings/WiiPane.cpp
Expand Up @@ -130,7 +130,7 @@ void WiiPane::CreateMisc()
"(576i) for PAL games.\nMay not work for all games."));
m_screensaver_checkbox->setToolTip(tr("Dims the screen after five minutes of inactivity."));
m_system_language_choice->setToolTip(tr("Sets the Wii system language."));
m_sd_card_checkbox->setToolTip(tr("Saved to /Wii/sd.raw (default size is 128mb)."));
m_sd_card_checkbox->setToolTip(tr("Supports SD and SDHC. Default size is 128 MB."));
m_connect_keyboard_checkbox->setToolTip(tr("May cause slow down in Wii Menu and some games."));

misc_settings_group_layout->addWidget(m_pal60_mode_checkbox, 0, 0, 1, 1);
Expand Down

0 comments on commit 19fc43f

Please sign in to comment.