mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-23 02:45:12 -05:00
Merge pull request #14765 from slick-daddy/opt-6
InputCommon: return the device list directly in GetAllDevices
This commit is contained in:
@@ -261,12 +261,7 @@ std::vector<std::shared_ptr<Device>> DeviceContainer::GetAllDevices() const
|
||||
{
|
||||
std::lock_guard lk(m_devices_mutex);
|
||||
|
||||
std::vector<std::shared_ptr<Device>> devices;
|
||||
|
||||
for (const auto& d : m_devices)
|
||||
devices.emplace_back(d);
|
||||
|
||||
return devices;
|
||||
return m_devices;
|
||||
}
|
||||
|
||||
std::vector<std::string> DeviceContainer::GetAllDeviceStrings() const
|
||||
|
||||
Reference in New Issue
Block a user