mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Handle some undefined behavior regarding null pads
This commit is contained in:
parent
ca9898e838
commit
9e352da052
8 changed files with 54 additions and 4 deletions
|
|
@ -244,6 +244,8 @@ std::shared_ptr<ds3_pad_handler::ds3_device> ds3_pad_handler::get_ds3_device(con
|
|||
|
||||
void ds3_pad_handler::init_config(pad_config* cfg, const std::string& name)
|
||||
{
|
||||
if (!cfg) return;
|
||||
|
||||
// Set this profile's save location
|
||||
cfg->cfg_name = name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue