mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Fix narrow warning in ds4_pad_handler.cpp
This commit is contained in:
parent
1678b37aa0
commit
b4f416cb76
1 changed files with 5 additions and 4 deletions
|
@ -535,8 +535,9 @@ void ds4_pad_handler::CheckAddDevice(hid_device* hidDevice, hid_device_info* hid
|
|||
else
|
||||
{
|
||||
ds4Dev->btCon = true;
|
||||
std::wstring wSerial(hidDevInfo->serial_number);
|
||||
serial = std::string(wSerial.begin(), wSerial.end());
|
||||
std::wstring_view wideSerial(hidDevInfo->serial_number);
|
||||
for (wchar_t ch : wideSerial)
|
||||
serial += static_cast<uchar>(ch);
|
||||
}
|
||||
|
||||
if (!GetCalibrationData(ds4Dev))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue