mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-22 06:29:15 +01:00
Return from KPADReadEx and VPADRead even if the error pointer was NULL.
This commit is contained in:
parent
ec822df6c4
commit
d450843200
@ -64,8 +64,8 @@ DECL(s32, VPADRead, s32 chan, VPADData *buffer, u32 buffer_size, s32 *error) {
|
|||||||
}
|
}
|
||||||
if(error != NULL){
|
if(error != NULL){
|
||||||
*error = 0;
|
*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){
|
if(error != NULL){
|
||||||
*error = 0;
|
*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){
|
}else if(res != CONTROLLER_PATCHER_ERROR_MAPPING_DISABLED){
|
||||||
//log_printf("KPADReadEx error: %d\n",res);
|
//log_printf("KPADReadEx error: %d\n",res);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user