mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
MSVC 16.8 Preview 3.1 compiler fix
The latest MSVC 16.8 Preview 3.1 cl.exe no longer likes the implicit conversion from false->std::shared_ptr But it's happy with nullptr Not the ideal solution, but it will kick the can down the road a little.
This commit is contained in:
parent
0c3c34179e
commit
04deb97f94
@ -474,11 +474,11 @@ bool mm_joystick_handler::GetMMJOYDevice(int index, MMJOYDevice* dev)
|
||||
std::shared_ptr<PadDevice> mm_joystick_handler::get_device(const std::string& device)
|
||||
{
|
||||
if (!Init())
|
||||
return false;
|
||||
return nullptr;
|
||||
|
||||
int id = GetIDByName(device);
|
||||
if (id < 0)
|
||||
return false;
|
||||
return nullptr;
|
||||
|
||||
std::shared_ptr<MMJOYDevice> joy_device = std::make_shared<MMJOYDevice>(m_devices.at(id));
|
||||
return joy_device;
|
||||
|
Loading…
Reference in New Issue
Block a user