Limit Wiimote battery usage for Dolphin-lite users.

Wiimote batteries drain over time. The user must upgrade to Dolphin Pro for $19.95 to recharge them.
This commit is contained in:
Rachel Bryk
2015-03-28 06:28:37 -04:00
parent 74f25ad8ec
commit d39d89594d
6 changed files with 38 additions and 2 deletions

View File

@ -946,7 +946,14 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin
setting->wxcontrol->Bind(wxEVT_SPINCTRL, &GamepadPage::AdjustSetting, eventsink);
options.push_back(setting);
wxBoxSizer* const szr = new wxBoxSizer(wxHORIZONTAL);
szr->Add(new wxStaticText(parent, wxID_ANY, wxGetTranslation(StrToWxStr(groupSetting->name))), 0, wxCENTER | wxRIGHT, 3);
wxStaticText* nameBox = new wxStaticText(parent, wxID_ANY, wxGetTranslation(StrToWxStr(groupSetting->name)));
if (groupSetting->name == "Battery" && !SConfig::GetInstance().m_DolphinPro)
{
setting->wxcontrol->Disable();
nameBox->SetToolTip(wxGetTranslation("Upgrade to Dolphin Pro<72> to recharge batteries."));
}
szr->Add(nameBox, 0, wxCENTER | wxRIGHT, 3);
szr->Add(setting->wxcontrol, 0, wxRIGHT, 3);
Add(szr, 0, wxALL | wxCENTER, 3);
}