Permalink
Browse files

DolphinQt: Allow inserting/ejecting SD cards during emulation

This is possible on real hardware and was possible in DolphinWX.
  • Loading branch information...
JosJuice committed Sep 20, 2018
1 parent 40b7fab commit 5db27b8e7eff3da7d1052e753500a9070340b218
Showing with 9 additions and 2 deletions.
  1. +9 −2 Source/Core/DolphinQt/Settings/WiiPane.cpp
@@ -193,7 +193,6 @@ void WiiPane::OnEmulationStateChanged(bool running)
{
m_screensaver_checkbox->setEnabled(!running);
m_pal60_mode_checkbox->setEnabled(!running);
m_sd_card_checkbox->setEnabled(!running);
m_system_language_choice->setEnabled(!running);
m_aspect_ratio_choice->setEnabled(!running);
m_wiimote_motor->setEnabled(!running);
@@ -225,7 +224,15 @@ void WiiPane::OnSaveConfig()
Config::SetBase(Config::SYSCONF_SCREENSAVER, m_screensaver_checkbox->isChecked());
Config::SetBase(Config::SYSCONF_PAL60, m_pal60_mode_checkbox->isChecked());
Settings::Instance().SetUSBKeyboardConnected(m_connect_keyboard_checkbox->isChecked());
SConfig::GetInstance().m_WiiSDCard = m_sd_card_checkbox->isChecked();
if (SConfig::GetInstance().m_WiiSDCard != m_sd_card_checkbox->isChecked())
{
SConfig::GetInstance().m_WiiSDCard = m_sd_card_checkbox->isChecked();
auto* ios = IOS::HLE::GetIOS();
if (ios)
ios->SDIO_EventNotify();
}
Config::SetBase<u32>(Config::SYSCONF_SENSOR_BAR_POSITION,
TranslateSensorBarPosition(m_wiimote_ir_sensor_position->currentIndex()));
Config::SetBase<u32>(Config::SYSCONF_SENSOR_BAR_SENSITIVITY, m_wiimote_ir_sensitivity->value());

0 comments on commit 5db27b8

Please sign in to comment.