mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Core/BTEmu: Change a member variable to a local variable.
This commit is contained in:
parent
39df01434c
commit
32ef8a46a1
@ -102,7 +102,6 @@ void BluetoothEmu::DoState(PointerWrap& p)
|
|||||||
|
|
||||||
p.Do(m_is_active);
|
p.Do(m_is_active);
|
||||||
p.Do(m_controller_bd);
|
p.Do(m_controller_bd);
|
||||||
DoStateForMessage(m_ios, p, m_ctrl_setup);
|
|
||||||
DoStateForMessage(m_ios, p, m_hci_endpoint);
|
DoStateForMessage(m_ios, p, m_hci_endpoint);
|
||||||
DoStateForMessage(m_ios, p, m_acl_endpoint);
|
DoStateForMessage(m_ios, p, m_acl_endpoint);
|
||||||
p.Do(m_last_ticks);
|
p.Do(m_last_ticks);
|
||||||
@ -149,10 +148,8 @@ IPCCommandResult BluetoothEmu::IOCtlV(const IOCtlVRequest& request)
|
|||||||
{
|
{
|
||||||
case USB::IOCTLV_USBV0_CTRLMSG: // HCI command is received from the stack
|
case USB::IOCTLV_USBV0_CTRLMSG: // HCI command is received from the stack
|
||||||
{
|
{
|
||||||
m_ctrl_setup = std::make_unique<USB::V0CtrlMessage>(m_ios, request);
|
|
||||||
// Replies are generated inside
|
// Replies are generated inside
|
||||||
ExecuteHCICommandMessage(*m_ctrl_setup);
|
ExecuteHCICommandMessage(USB::V0CtrlMessage(m_ios, request));
|
||||||
m_ctrl_setup.reset();
|
|
||||||
send_reply = false;
|
send_reply = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,6 @@ private:
|
|||||||
// this is used to trigger connecting via ACL
|
// this is used to trigger connecting via ACL
|
||||||
u8 m_scan_enable = 0;
|
u8 m_scan_enable = 0;
|
||||||
|
|
||||||
std::unique_ptr<USB::V0CtrlMessage> m_ctrl_setup;
|
|
||||||
std::unique_ptr<USB::V0IntrMessage> m_hci_endpoint;
|
std::unique_ptr<USB::V0IntrMessage> m_hci_endpoint;
|
||||||
std::unique_ptr<USB::V0BulkMessage> m_acl_endpoint;
|
std::unique_ptr<USB::V0BulkMessage> m_acl_endpoint;
|
||||||
std::deque<SQueuedEvent> m_event_queue;
|
std::deque<SQueuedEvent> m_event_queue;
|
||||||
|
Loading…
Reference in New Issue
Block a user