Return from KPADReadEx and VPADRead even if the error pointer was NULL.

This commit is contained in:
Maschell 2017-04-11 17:35:32 +02:00
parent ec822df6c4
commit d450843200

View File

@ -64,8 +64,8 @@ DECL(s32, VPADRead, s32 chan, VPADData *buffer, u32 buffer_size, s32 *error) {
}
if(error != NULL){
*error = 0;
result = 1; // We want the WiiU to ignore everything else.
}
result = 1; // We want the WiiU to ignore everything else.
}
}
@ -88,8 +88,8 @@ DECL(s32,KPADReadEx, s32 chan, KPADData * buffer, u32 buffer_count, s32 *error )
}
if(error != NULL){
*error = 0;
return 1; // We have saved one set of data. Should be enough because its no wireless communication.
}
return 1; // We have saved one set of data. Should be enough because its no wireless communication.
}else if(res != CONTROLLER_PATCHER_ERROR_MAPPING_DISABLED){
//log_printf("KPADReadEx error: %d\n",res);
}