mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
InputConfigDialog pass the device_cbox to the wiimote extension dialogs
This fixes a crash when trying to open the advanced input config dialog on the wiimote extensions. The device_cbox wasn't initialised and it should have been with the wiimote one.
This commit is contained in:
parent
540bf4618c
commit
334e33d4fa
11 changed files with 46 additions and 15 deletions
|
@ -71,31 +71,34 @@ void InputConfigDialog::ConfigExtension(wxCommandEvent& event)
|
|||
{
|
||||
case WiimoteEmu::EXT_NUNCHUK:
|
||||
{
|
||||
NunchukInputConfigDialog dlg(this, m_config, _("Nunchuk Configuration"), m_port_num);
|
||||
NunchukInputConfigDialog dlg(this, m_config, _("Nunchuk Configuration"), device_cbox,
|
||||
m_port_num);
|
||||
dlg.ShowModal();
|
||||
}
|
||||
break;
|
||||
case WiimoteEmu::EXT_CLASSIC:
|
||||
{
|
||||
ClassicInputConfigDialog dlg(this, m_config, _("Classic Controller Configuration"), m_port_num);
|
||||
ClassicInputConfigDialog dlg(this, m_config, _("Classic Controller Configuration"), device_cbox,
|
||||
m_port_num);
|
||||
dlg.ShowModal();
|
||||
}
|
||||
break;
|
||||
case WiimoteEmu::EXT_GUITAR:
|
||||
{
|
||||
GuitarInputConfigDialog dlg(this, m_config, _("Guitar Configuration"), m_port_num);
|
||||
GuitarInputConfigDialog dlg(this, m_config, _("Guitar Configuration"), device_cbox, m_port_num);
|
||||
dlg.ShowModal();
|
||||
}
|
||||
break;
|
||||
case WiimoteEmu::EXT_DRUMS:
|
||||
{
|
||||
DrumsInputConfigDialog dlg(this, m_config, _("Drums Configuration"), m_port_num);
|
||||
DrumsInputConfigDialog dlg(this, m_config, _("Drums Configuration"), device_cbox, m_port_num);
|
||||
dlg.ShowModal();
|
||||
}
|
||||
break;
|
||||
case WiimoteEmu::EXT_TURNTABLE:
|
||||
{
|
||||
TurntableInputConfigDialog dlg(this, m_config, _("Turntable Configuration"), m_port_num);
|
||||
TurntableInputConfigDialog dlg(this, m_config, _("Turntable Configuration"), device_cbox,
|
||||
m_port_num);
|
||||
dlg.ShowModal();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue