From d60a1e0c0f07921b92954ca5e560eda9908d3682 Mon Sep 17 00:00:00 2001 From: Will Xyen Date: Sun, 13 Oct 2019 11:50:56 -0400 Subject: [PATCH] iidxhook8: Fixup some missed renaming from struct cleanup --- src/main/iidxhook8/bi2a.c | 2 +- src/main/iidxhook8/bi2a.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/iidxhook8/bi2a.c b/src/main/iidxhook8/bi2a.c index 98f9ce4..8242127 100644 --- a/src/main/iidxhook8/bi2a.c +++ b/src/main/iidxhook8/bi2a.c @@ -198,7 +198,7 @@ static void bio2_emu_bi2a_send_state(struct ac_io_emu *emu, const struct ac_io_m return bio2_emu_bi2a_send_status(emu, req, 0); } - body = (struct bio2_bi2a_state *)&resp.cmd.raw; + body = (struct bi2a_iidx_state_out *)&resp.cmd.raw; memset(body, 0, sizeof(struct bi2a_iidx_state_out)); // IIDX25 polls really really fast, this limits it to 1000Hz diff --git a/src/main/iidxhook8/bi2a.h b/src/main/iidxhook8/bi2a.h index fd4a1ab..eb18b07 100644 --- a/src/main/iidxhook8/bi2a.h +++ b/src/main/iidxhook8/bi2a.h @@ -106,8 +106,8 @@ struct bi2a_iidx_state_in { struct bi2a_iidx_light SPOTLIGHT2[4]; uint8_t UNK3[7]; }; -_Static_assert(sizeof(struct bi2a_iidx_state_in) == 48, "bio2_bi2a_state_in is the wrong size"); -_Static_assert(sizeof(struct bi2a_iidx_state_out) == 46, "bio2_bi2a_state_out is the wrong size"); +_Static_assert(sizeof(struct bi2a_iidx_state_in) == 48, "bi2a_iidx_state_in is the wrong size"); +_Static_assert(sizeof(struct bi2a_iidx_state_out) == 46, "bi2a_iidx_state_out is the wrong size"); #pragma pack(pop) void bio2_emu_bi2a_init(struct bio2emu_port *in, bool disable_poll_limiter);