return proper error code for scePadOpen failure
This commit is contained in:
parent
79e86a39fc
commit
550cf0188d
|
@ -249,10 +249,10 @@ int PS4_SYSV_ABI scePadOpen(s32 userId, s32 type, s32 index, const OrbisPadOpenP
|
||||||
LOG_INFO(Lib_Pad, "(DUMMY) called user_id = {} type = {} index = {}", userId, type, index);
|
LOG_INFO(Lib_Pad, "(DUMMY) called user_id = {} type = {} index = {}", userId, type, index);
|
||||||
if (Config::getUseSpecialPad()) {
|
if (Config::getUseSpecialPad()) {
|
||||||
if (type != ORBIS_PAD_PORT_TYPE_SPECIAL)
|
if (type != ORBIS_PAD_PORT_TYPE_SPECIAL)
|
||||||
return -1;
|
return ORBIS_PAD_ERROR_DEVICE_NOT_CONNECTED;
|
||||||
} else {
|
} else {
|
||||||
if (type != ORBIS_PAD_PORT_TYPE_STANDARD)
|
if (type != ORBIS_PAD_PORT_TYPE_STANDARD)
|
||||||
return -1;
|
return ORBIS_PAD_ERROR_DEVICE_NOT_CONNECTED;
|
||||||
}
|
}
|
||||||
return 1; // dummy
|
return 1; // dummy
|
||||||
}
|
}
|
||||||
|
@ -261,10 +261,10 @@ int PS4_SYSV_ABI scePadOpenExt(s32 userId, s32 type, s32 index, const OrbisPadOp
|
||||||
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
||||||
if (Config::getUseSpecialPad()) {
|
if (Config::getUseSpecialPad()) {
|
||||||
if (type != ORBIS_PAD_PORT_TYPE_SPECIAL)
|
if (type != ORBIS_PAD_PORT_TYPE_SPECIAL)
|
||||||
return -1;
|
return ORBIS_PAD_ERROR_DEVICE_NOT_CONNECTED;
|
||||||
} else {
|
} else {
|
||||||
if (type != ORBIS_PAD_PORT_TYPE_STANDARD)
|
if (type != ORBIS_PAD_PORT_TYPE_STANDARD)
|
||||||
return -1;
|
return ORBIS_PAD_ERROR_DEVICE_NOT_CONNECTED;
|
||||||
}
|
}
|
||||||
return 1; // dummy
|
return 1; // dummy
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue