forked from beerpsi/chuniio-brokenithm
fix compilation error caused by conflicting names
This commit is contained in:
parent
59ce0565e5
commit
255eb07d31
@ -270,9 +270,9 @@ unsigned int __stdcall input_recv_thread_proc(void *v) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet_len >= sizeof(struct PacketInput) &&
|
if (packet_len >= sizeof(struct AndroidPacketInput) &&
|
||||||
memcmp(buffer + 1, "INP", 3) == 0) {
|
memcmp(buffer + 1, "INP", 3) == 0) {
|
||||||
const struct PacketInput *pkt = (struct PacketInput *)buffer;
|
const struct AndroidPacketInput *pkt = (struct AndroidPacketInput *)buffer;
|
||||||
|
|
||||||
memcpy(memory->airIoStatus, pkt->airIoStatus, sizeof(pkt->airIoStatus));
|
memcpy(memory->airIoStatus, pkt->airIoStatus, sizeof(pkt->airIoStatus));
|
||||||
memcpy(memory->sliderIoStatus, pkt->sliderIoStatus,
|
memcpy(memory->sliderIoStatus, pkt->sliderIoStatus,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
;
|
;
|
||||||
#pragma pack(push)
|
#pragma pack(push)
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
struct PacketInput {
|
struct AndroidPacketInput {
|
||||||
uint8_t packetSize;
|
uint8_t packetSize;
|
||||||
uint8_t packetName[3];
|
uint8_t packetName[3];
|
||||||
uint32_t packetId;
|
uint32_t packetId;
|
||||||
|
@ -102,8 +102,8 @@ unsigned int __stdcall ios_input_recv_thread_proc(void *v) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len >= sizeof(struct PacketInput) && memcmp(buffer + 1, "INP", 3) == 0) {
|
if (len >= sizeof(struct iOSPacketInput) && memcmp(buffer + 1, "INP", 3) == 0) {
|
||||||
struct PacketInput *pkt = (struct PacketInput *)buffer;
|
struct iOSPacketInput *pkt = (struct iOSPacketInput *)buffer;
|
||||||
|
|
||||||
if (air_enabled) {
|
if (air_enabled) {
|
||||||
memcpy(ctx->memory->airIoStatus, pkt->airIoStatus,
|
memcpy(ctx->memory->airIoStatus, pkt->airIoStatus,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
;
|
;
|
||||||
#pragma pack(push)
|
#pragma pack(push)
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
struct PacketInput {
|
struct iOSPacketInput {
|
||||||
uint8_t packetSize;
|
uint8_t packetSize;
|
||||||
uint8_t packetName[3];
|
uint8_t packetName[3];
|
||||||
uint8_t airIoStatus[6];
|
uint8_t airIoStatus[6];
|
||||||
|
Loading…
Reference in New Issue
Block a user