mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-02-17 19:19:16 +01:00
minor bugfixes
This commit is contained in:
parent
128496901e
commit
1712f10f66
@ -36,6 +36,7 @@ enum ac_io_node_type {
|
||||
AC_IO_NODE_TYPE_LED_SPIKE = 0x05010000,
|
||||
AC_IO_NODE_TYPE_KFCA = 0x09060000,
|
||||
AC_IO_NODE_TYPE_BI2A = 0x0d060000,
|
||||
AC_IO_NODE_TYPE_RVOL = 0x09060001,
|
||||
};
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
@ -166,6 +166,7 @@ static int aciodrv_device_receive(uint8_t *buffer, int size)
|
||||
|
||||
#ifdef AC_IO_MSG_LOG
|
||||
aciodrv_device_log_buffer("Recv (1)", recv_buf, recv_size);
|
||||
log_warning("Expected %d got %d", recv_buf[4], recv_size - 6);
|
||||
#endif
|
||||
|
||||
/* recv_size - 1: omit checksum for checksum calc */
|
||||
|
@ -99,7 +99,7 @@ static bool get_device_by_filter(
|
||||
|
||||
if (DeviceRegKey) {
|
||||
bool found = false;
|
||||
log_info("Found a serial device at index: %d", idx);
|
||||
log_info("Found a serial device at index: %ld", idx);
|
||||
|
||||
if (!id_filter) {
|
||||
if (check_property(DeviceInfoSet, &DeviceInfoData, property)) {
|
||||
|
@ -95,7 +95,13 @@ static HRESULT STDCALL my_DirectInput8Create(
|
||||
return res;
|
||||
}
|
||||
|
||||
api_proxy = com_proxy_wrap(api, sizeof(*api->lpVtbl));
|
||||
res = com_proxy_wrap(&api_proxy, api, sizeof(*api->lpVtbl));
|
||||
|
||||
if (res != S_OK) {
|
||||
log_warning("Wrapping com proxy failed: %08lx", res);
|
||||
return res;
|
||||
}
|
||||
|
||||
api_vtbl = api_proxy->vptr;
|
||||
|
||||
api_vtbl->EnumDevices = my_EnumDevices;
|
||||
|
Loading…
x
Reference in New Issue
Block a user