mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user