mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-09 04:13:28 -05:00
mingw: fix usage of std::bind_back with lambda
This commit is contained in:
parent
045ef05f88
commit
fa6c14fc54
|
|
@ -637,8 +637,15 @@ static std::vector<WiimoteScannerWindows::EnumeratedWiimoteInterface> GetAllWiim
|
|||
// For some reason, a Balance Board `BusReportedDeviceDesc` is "Nintendo RVL-CNT-01".
|
||||
const auto device_description =
|
||||
parent_inst
|
||||
#ifdef __MINGW32__
|
||||
.and_then([&](auto&& devnode) {
|
||||
return Common::GetDevNodeStringProperty(std::forward<decltype(devnode)>(devnode),
|
||||
&DEVPKEY_Device_BusReportedDeviceDesc);
|
||||
})
|
||||
#else
|
||||
.and_then(std::bind_back(Common::GetDevNodeStringProperty,
|
||||
&DEVPKEY_Device_BusReportedDeviceDesc))
|
||||
#endif
|
||||
.transform(WStringToUTF8);
|
||||
DEBUG_LOG_FMT(WIIMOTE, " BusReportedDeviceDesc: {}", device_description.value_or("<error>"));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user