Clean up `nuContQueryImpl`

This commit is contained in:
gijs 2023-10-22 13:48:26 +02:00
parent 1f79bf2bb2
commit 0d150f7271
1 changed files with 9 additions and 9 deletions

View File

@ -63,17 +63,17 @@ s32 nuContReadDataImpl(OSContPad* data, u32 flags) {
return 0;
}
s32 nuContQueryImpl(void) {
s32 var_v0;
s32 nuContQueryImpl(NUSiCommonMesg* mesg) {
s32 ret = osContStartQuery(&nuSiMesgQ);
var_v0 = osContStartQuery(&nuSiMesgQ);
if (var_v0 == 0) {
osRecvMesg(&nuSiMesgQ, NULL, OS_MESG_BLOCK);
osContGetQuery(nuContStatus);
return 0;
} else {
return var_v0;
if (ret != 0) {
return ret;
}
osRecvMesg(&nuSiMesgQ, NULL, OS_MESG_BLOCK);
osContGetQuery(nuContStatus);
return ret;
}
s32 nuContRetraceImpl(NUSiCommonMesg* mesg) {