mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -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:
@ -8,11 +8,15 @@
|
||||
#include "Core/HW/WiimoteEmu/WiimoteEmu.h"
|
||||
|
||||
ClassicInputConfigDialog::ClassicInputConfigDialog(wxWindow* const parent, InputConfig& config,
|
||||
const wxString& name, const int port_num)
|
||||
const wxString& name,
|
||||
wxComboBox* device_cbox_parent,
|
||||
const int port_num)
|
||||
: InputConfigDialog(parent, config, name, port_num)
|
||||
{
|
||||
const int space5 = FromDIP(5);
|
||||
|
||||
device_cbox = device_cbox_parent;
|
||||
|
||||
auto* const group_box_buttons = new ControlGroupBox(
|
||||
Wiimote::GetClassicGroup(port_num, WiimoteEmu::ClassicGroup::Buttons), this, this);
|
||||
auto* const group_box_dpad = new ControlGroupBox(
|
||||
|
Reference in New Issue
Block a user