mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
input: add missing nullptr checks for pad
This commit is contained in:
parent
7977fbb9c5
commit
8efc29972d
2 changed files with 6 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ std::string keyboard_pad_handler::native_scan_code_to_string(int native_scan_cod
|
|||
|
||||
bool keyboard_pad_handler::bindPadToDevice(std::shared_ptr<Pad> pad, const std::string& device, u8 player_id)
|
||||
{
|
||||
if (device != pad::keyboard_device_name)
|
||||
if (!pad || device != pad::keyboard_device_name)
|
||||
return false;
|
||||
|
||||
m_pad_configs[player_id].from_string(g_cfg_input.player[player_id]->config.to_string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue