// Wii settings // ------------------- void CConfigMain::WiiSettingsChanged(wxCommandEvent& event) { switch (event.GetId()) { // Wii - SYSCONF settings case ID_WII_IPL_SSV: SConfig::GetInstance().m_SYSCONF->SetData("IPL.SSV", WiiScreenSaver->IsChecked()); break; case ID_WII_IPL_E60: SConfig::GetInstance().m_SYSCONF->SetData("IPL.E60", WiiEuRGB60->IsChecked()); break; case ID_WII_IPL_AR: SConfig::GetInstance().m_SYSCONF->SetData("IPL.AR", WiiAspectRatio->GetSelection()); break; case ID_WII_IPL_LNG: { int wii_system_lang = WiiSystemLang->GetSelection(); SConfig::GetInstance().m_SYSCONF->SetData("IPL.LNG", wii_system_lang); u8 country_code = GetSADRCountryCode(wii_system_lang); if (!SConfig::GetInstance().m_SYSCONF->SetArrayData("IPL.SADR", &country_code, 1)) { PanicAlertT("Failed to update country code in SYSCONF"); } break; } // Wii - Devices case ID_WII_SD_CARD: SConfig::GetInstance().m_WiiSDCard = WiiSDCard->IsChecked(); WII_IPC_HLE_Interface::SDIO_EventNotify(); break; case ID_WII_KEYBOARD: SConfig::GetInstance().m_WiiKeyboard = WiiKeyboard->IsChecked(); break; } }
void SConfig::SaveSettingsToSysconf() { SysConf sysconf; sysconf.SetData<u8>("IPL.SSV", m_wii_screensaver); sysconf.SetData<u8>("IPL.LNG", m_wii_language); u8 country_code = GetSADRCountryCode(static_cast<DiscIO::Language>(m_wii_language)); sysconf.SetArrayData("IPL.SADR", &country_code, 1); sysconf.SetData<u8>("IPL.AR", m_wii_aspect_ratio); sysconf.SetData<u8>("BT.BAR", m_sensor_bar_position); sysconf.SetData<u32>("BT.SENS", m_sensor_bar_sensitivity); sysconf.SetData<u8>("BT.SPKV", m_speaker_volume); sysconf.SetData("BT.MOT", m_wiimote_motor); sysconf.SetData("IPL.PGS", bProgressive); sysconf.SetData("IPL.E60", bPAL60); // Disable WiiConnect24's standby mode. If it is enabled, it prevents us from receiving // shutdown commands in the State Transition Manager (STM). // TODO: remove this if and once Dolphin supports WC24 standby mode. sysconf.SetData<u8>("IPL.IDL", 0x00); NOTICE_LOG(COMMON, "Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown"); RestoreBTInfoSection(&sysconf); sysconf.Save(); }
void WiiConfigPane::OnSystemLanguageChoiceChanged(wxCommandEvent& event) { DiscIO::IVolume::ELanguage wii_system_lang = (DiscIO::IVolume::ELanguage)m_system_language_choice->GetSelection(); SConfig::GetInstance().m_SYSCONF->SetData("IPL.LNG", wii_system_lang); u8 country_code = GetSADRCountryCode(wii_system_lang); if (!SConfig::GetInstance().m_SYSCONF->SetArrayData("IPL.SADR", &country_code, 1)) WxUtils::ShowErrorDialog(_("Failed to update country code in SYSCONF")); }