From 07265b8744aa074c03a112397066f837af889dfd Mon Sep 17 00:00:00 2001 From: gijs Date: Sun, 22 Oct 2023 13:46:17 +0200 Subject: [PATCH] Clean up `nuContReadImpl` --- src/nu/nucontmgr.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nu/nucontmgr.c b/src/nu/nucontmgr.c index a437e53..58b2891 100644 --- a/src/nu/nucontmgr.c +++ b/src/nu/nucontmgr.c @@ -94,13 +94,8 @@ s32 nuContRetraceImpl(NUSiCommonMesg* mesg) { return NU_SI_CALLBACK_CONTINUE; } -typedef struct { - /* 0x0 */ u8 field_0x0[0xc]; - /* 0xC */ OSContPad* data; -} Arg___calls_read_controller_1; - -void nuContReadImpl(Arg___calls_read_controller_1* arg) { - nuContReadDataImpl(arg->data, 0); +void nuContReadImpl(NUSiCommonMesg* mesg) { + nuContReadDataImpl((OSContPad*)mesg->dataPtr, 0); } s32 nuContReadNWImpl(NUSiCommonMesg* mesg) {