diff --git a/src/imports/avs-ea3.h b/src/imports/avs-ea3.h index d6969b5..6ffa1d2 100644 --- a/src/imports/avs-ea3.h +++ b/src/imports/avs-ea3.h @@ -1,6 +1,8 @@ #ifndef IMPORTS_AVS_EA3_H #define IMPORTS_AVS_EA3_H +#include "imports/avs.h" + void ea3_boot(struct property_node *conf); void ea3_shutdown(void); diff --git a/src/main/acioemu/emu.c b/src/main/acioemu/emu.c index cbd277f..cf3cadc 100644 --- a/src/main/acioemu/emu.c +++ b/src/main/acioemu/emu.c @@ -1,8 +1,11 @@ #include /* Usermode API */ +// clang-format off +// Don't format because the order is important here +#include #include #include -#include /* Kernel-mode API for ioctls */ +// clang-format on #include #include diff --git a/src/main/bio2emu/emu.c b/src/main/bio2emu/emu.c index c17664a..ceb4248 100644 --- a/src/main/bio2emu/emu.c +++ b/src/main/bio2emu/emu.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/bsthook/acio.c b/src/main/bsthook/acio.c index c7fb07b..e340a04 100644 --- a/src/main/bsthook/acio.c +++ b/src/main/bsthook/acio.c @@ -1,8 +1,11 @@ #include +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/config/analogs.c b/src/main/config/analogs.c index 6d83416..48c4881 100644 --- a/src/main/config/analogs.c +++ b/src/main/config/analogs.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/config/bind-light.c b/src/main/config/bind-light.c index b98c981..24885d3 100644 --- a/src/main/config/bind-light.c +++ b/src/main/config/bind-light.c @@ -1,5 +1,8 @@ +// clang-format off +// Don't format because the order is important here #include #include +// clang-format on #include #include diff --git a/src/main/config/buttons.c b/src/main/config/buttons.c index 3aec4e3..f4a498b 100644 --- a/src/main/config/buttons.c +++ b/src/main/config/buttons.c @@ -1,6 +1,9 @@ +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/config/eam.c b/src/main/config/eam.c index d1d15d9..e9bb76c 100644 --- a/src/main/config/eam.c +++ b/src/main/config/eam.c @@ -1,6 +1,9 @@ +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/config/lights.c b/src/main/config/lights.c index ef5a0af..3880d61 100644 --- a/src/main/config/lights.c +++ b/src/main/config/lights.c @@ -1,7 +1,10 @@ +// clang-format off +// Don't format because the order is important here +#include #include #include -#include #include +// clang-format on #include #include diff --git a/src/main/config/main.c b/src/main/config/main.c index ff4c855..6dab111 100644 --- a/src/main/config/main.c +++ b/src/main/config/main.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/ddrhook/_com4.c b/src/main/ddrhook/_com4.c index 14ce182..2e37c36 100644 --- a/src/main/ddrhook/_com4.c +++ b/src/main/ddrhook/_com4.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include #include diff --git a/src/main/ddrhook/extio.c b/src/main/ddrhook/extio.c index 2d99d35..4b84169 100644 --- a/src/main/ddrhook/extio.c +++ b/src/main/ddrhook/extio.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include #include diff --git a/src/main/ddrhook/monitor.c b/src/main/ddrhook/monitor.c index 3eb72c5..a9e0c47 100644 --- a/src/main/ddrhook/monitor.c +++ b/src/main/ddrhook/monitor.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/ddrhook/spike.c b/src/main/ddrhook/spike.c index c6364eb..a0ef9f5 100644 --- a/src/main/ddrhook/spike.c +++ b/src/main/ddrhook/spike.c @@ -1,10 +1,12 @@ #define LOG_MODULE "spike" +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include #include diff --git a/src/main/ddrhook/usbmem.c b/src/main/ddrhook/usbmem.c index 8108dc7..2f26fd2 100644 --- a/src/main/ddrhook/usbmem.c +++ b/src/main/ddrhook/usbmem.c @@ -1,10 +1,12 @@ #define LOG_MODULE "usbmem" +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include #include diff --git a/src/main/eamio-icca/eamio-icca.c b/src/main/eamio-icca/eamio-icca.c index 33f3827..00478a6 100644 --- a/src/main/eamio-icca/eamio-icca.c +++ b/src/main/eamio-icca/eamio-icca.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/eamio/eam-api.c b/src/main/eamio/eam-api.c index 532b160..0320317 100644 --- a/src/main/eamio/eam-api.c +++ b/src/main/eamio/eam-api.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/ezusb-emu/device.c b/src/main/ezusb-emu/device.c index b857716..4d87029 100644 --- a/src/main/ezusb-emu/device.c +++ b/src/main/ezusb-emu/device.c @@ -1,8 +1,11 @@ #define LOG_MODULE "ezusb-emu-device" +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include diff --git a/src/main/ezusb/ezusb.c b/src/main/ezusb/ezusb.c index 81ed191..ce1b828 100644 --- a/src/main/ezusb/ezusb.c +++ b/src/main/ezusb/ezusb.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include "ezusb/ezusb.h" #include "ezusb/ezusbsys2.h" diff --git a/src/main/ezusb2-dbg-hook/main.c b/src/main/ezusb2-dbg-hook/main.c index ef05efb..e90d3fb 100644 --- a/src/main/ezusb2-dbg-hook/main.c +++ b/src/main/ezusb2-dbg-hook/main.c @@ -1,7 +1,10 @@ #define LOG_MODULE "ezusb2-dbg" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/ezusb2-emu/device.c b/src/main/ezusb2-emu/device.c index 9c40c37..971743a 100644 --- a/src/main/ezusb2-emu/device.c +++ b/src/main/ezusb2-emu/device.c @@ -1,8 +1,11 @@ #define LOG_MODULE "ezusb2-emu-device" +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include diff --git a/src/main/ezusb2/ezusb2.c b/src/main/ezusb2/ezusb2.c index 9e8685e..61fabd7 100644 --- a/src/main/ezusb2/ezusb2.c +++ b/src/main/ezusb2/ezusb2.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include "ezusb/ezusb.h" diff --git a/src/main/geninput/dev-list.c b/src/main/geninput/dev-list.c index 82efa6f..c96f99c 100644 --- a/src/main/geninput/dev-list.c +++ b/src/main/geninput/dev-list.c @@ -1,6 +1,9 @@ -#include -#include +// clang-format off +// Don't format because the order is important here #include +#include +#include +// clang-format on #include #include diff --git a/src/main/geninput/dev-list.h b/src/main/geninput/dev-list.h index 612c363..f4d6f60 100644 --- a/src/main/geninput/dev-list.h +++ b/src/main/geninput/dev-list.h @@ -1,8 +1,11 @@ #ifndef GENINPUT_DEV_LIST_H #define GENINPUT_DEV_LIST_H -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/hid-generic-strings.c b/src/main/geninput/hid-generic-strings.c index 4424041..803647e 100644 --- a/src/main/geninput/hid-generic-strings.c +++ b/src/main/geninput/hid-generic-strings.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include diff --git a/src/main/geninput/hid-generic.c b/src/main/geninput/hid-generic.c index bb5bfc0..41e7382 100644 --- a/src/main/geninput/hid-generic.c +++ b/src/main/geninput/hid-generic.c @@ -6,8 +6,11 @@ #include #include -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include "geninput/hid-generic-strings.h" #include "geninput/hid-generic.h" diff --git a/src/main/geninput/hid-meta-in.c b/src/main/geninput/hid-meta-in.c index 5fa4ad8..bbaf44f 100644 --- a/src/main/geninput/hid-meta-in.c +++ b/src/main/geninput/hid-meta-in.c @@ -1,7 +1,10 @@ #define LOG_MODULE "hid-generic" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/hid-meta-out.c b/src/main/geninput/hid-meta-out.c index e74e989..00f2df1 100644 --- a/src/main/geninput/hid-meta-out.c +++ b/src/main/geninput/hid-meta-out.c @@ -1,7 +1,10 @@ #define LOG_MODULE "hid-generic" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/hid-report-in.c b/src/main/geninput/hid-report-in.c index f8e57a2..721a721 100644 --- a/src/main/geninput/hid-report-in.c +++ b/src/main/geninput/hid-report-in.c @@ -1,7 +1,10 @@ #define LOG_MODULE "hid-generic" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/hid-report-out.c b/src/main/geninput/hid-report-out.c index 13d3ca2..b7f55cb 100644 --- a/src/main/geninput/hid-report-out.c +++ b/src/main/geninput/hid-report-out.c @@ -1,7 +1,10 @@ #define LOG_MODULE "hid-generic" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/hotplug.c b/src/main/geninput/hotplug.c index 5a32f65..54dad42 100644 --- a/src/main/geninput/hotplug.c +++ b/src/main/geninput/hotplug.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include diff --git a/src/main/geninput/kbd.c b/src/main/geninput/kbd.c index 8d7dc04..9ae8e5e 100644 --- a/src/main/geninput/kbd.c +++ b/src/main/geninput/kbd.c @@ -1,8 +1,11 @@ #define LOG_MODULE "kbd" +// clang-format off +// Don't format because the order is important here +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/geninput/mouse.c b/src/main/geninput/mouse.c index 9f0b373..2b24d1c 100644 --- a/src/main/geninput/mouse.c +++ b/src/main/geninput/mouse.c @@ -1,7 +1,10 @@ #define LOG_MODULE "mouse" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/geninput/msg-thread.c b/src/main/geninput/msg-thread.c index 81b5dbf..cc21ae0 100644 --- a/src/main/geninput/msg-thread.c +++ b/src/main/geninput/msg-thread.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include diff --git a/src/main/geninput/pacdrive.c b/src/main/geninput/pacdrive.c index 30667f9..2a5ab36 100644 --- a/src/main/geninput/pacdrive.c +++ b/src/main/geninput/pacdrive.c @@ -1,7 +1,10 @@ #define LOG_MODULE "pacdrive" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/hooklib/rs232.c b/src/main/hooklib/rs232.c index 51d0567..49917b8 100644 --- a/src/main/hooklib/rs232.c +++ b/src/main/hooklib/rs232.c @@ -1,5 +1,12 @@ #include /* Usermode API */ +// clang-format off +// Don't format because the order is important here +#include +#include +#include +// clang-format on + #include #include #include /* Kernel-mode API for ioctls */ diff --git a/src/main/hooklib/setupapi.h b/src/main/hooklib/setupapi.h index 9b526f8..9ebc4fa 100644 --- a/src/main/hooklib/setupapi.h +++ b/src/main/hooklib/setupapi.h @@ -1,8 +1,11 @@ #ifndef HOOKLIB_SETUPAPI_H #define HOOKLIB_SETUPAPI_H -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on struct hook_setupapi_data { GUID device_guid; diff --git a/src/main/iidx-ezusb-exit-hook/main.c b/src/main/iidx-ezusb-exit-hook/main.c index a2a2177..77dbd37 100644 --- a/src/main/iidx-ezusb-exit-hook/main.c +++ b/src/main/iidx-ezusb-exit-hook/main.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/iidx-ezusb2-exit-hook/main.c b/src/main/iidx-ezusb2-exit-hook/main.c index 6af84bd..47f2bfc 100644 --- a/src/main/iidx-ezusb2-exit-hook/main.c +++ b/src/main/iidx-ezusb2-exit-hook/main.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/iidxhook-util/acio.c b/src/main/iidxhook-util/acio.c index 1f0796f..df34606 100644 --- a/src/main/iidxhook-util/acio.c +++ b/src/main/iidxhook-util/acio.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include #include diff --git a/src/main/iidxhook-util/d3d9.c b/src/main/iidxhook-util/d3d9.c index b33b1c4..18b123d 100644 --- a/src/main/iidxhook-util/d3d9.c +++ b/src/main/iidxhook-util/d3d9.c @@ -124,7 +124,7 @@ static void iidxhook_util_d3d9_patch_gpu_vid_pid(struct hook_d3d9_irp *irp) if (iidxhook_util_d3d9_config.pci_vid > 0 && iidxhook_util_d3d9_config.pci_pid > 0) { - + str_format( pci_id, sizeof(pci_id), diff --git a/src/main/iidxhook8/cam.c b/src/main/iidxhook8/cam.c index fd2a707..a43d244 100644 --- a/src/main/iidxhook8/cam.c +++ b/src/main/iidxhook8/cam.c @@ -1,7 +1,10 @@ #define LOG_MODULE "cam-hook" -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include @@ -513,8 +516,7 @@ char *grab_next_camera_id(char *buffer, size_t bsz) pAttributes, &MY_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE, &MY_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID); - i f(FAILED(hr)) - { + if (FAILED(hr)) { log_info("SetGUID failed: %ld", hr); goto done; } diff --git a/src/main/iidxio-ezusb/iidxio.c b/src/main/iidxio-ezusb/iidxio.c index a029853..3852582 100644 --- a/src/main/iidxio-ezusb/iidxio.c +++ b/src/main/iidxio-ezusb/iidxio.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/iidxio/iidxio.c b/src/main/iidxio/iidxio.c index 96e0e73..901c1ba 100644 --- a/src/main/iidxio/iidxio.c +++ b/src/main/iidxio/iidxio.c @@ -8,8 +8,11 @@ the "bemanitools" header files included by this source file for detailed information about the API you'll need to implement. */ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/jbhook/acio.c b/src/main/jbhook/acio.c index 8e4ff2a..1f07327 100644 --- a/src/main/jbhook/acio.c +++ b/src/main/jbhook/acio.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/jbhook1/acio.c b/src/main/jbhook1/acio.c index 6b758a8..f154ff3 100644 --- a/src/main/jbhook1/acio.c +++ b/src/main/jbhook1/acio.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/jbio/jbio.c b/src/main/jbio/jbio.c index b45905e..1069106 100644 --- a/src/main/jbio/jbio.c +++ b/src/main/jbio/jbio.c @@ -8,8 +8,11 @@ the "bemanitools" header files included by this source file for detailed information about the API you'll need to implement. */ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include "bemanitools/input.h" #include "bemanitools/jbio.h" diff --git a/src/main/p3ioemu/devmgr.c b/src/main/p3ioemu/devmgr.c index cf18d87..fc729b3 100644 --- a/src/main/p3ioemu/devmgr.c +++ b/src/main/p3ioemu/devmgr.c @@ -1,5 +1,8 @@ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/p3ioemu/uart.c b/src/main/p3ioemu/uart.c index 5f7f4e8..416121e 100644 --- a/src/main/p3ioemu/uart.c +++ b/src/main/p3ioemu/uart.c @@ -1,10 +1,12 @@ #define LOG_MODULE "p3ioemu-uart" +// clang-format off +// Don't format because the order is important here #include - #include -#include #include +#include +// clang-format on #include diff --git a/src/main/sdvxhook/acio.c b/src/main/sdvxhook/acio.c index 3be972b..f331dba 100644 --- a/src/main/sdvxhook/acio.c +++ b/src/main/sdvxhook/acio.c @@ -1,8 +1,10 @@ +// clang-format off +// Don't format because the order is important here #include - +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/sdvxhook/lcd.c b/src/main/sdvxhook/lcd.c index 176edee..17ff2d8 100644 --- a/src/main/sdvxhook/lcd.c +++ b/src/main/sdvxhook/lcd.c @@ -1,10 +1,12 @@ #define LOG_MODULE "lcd" +// clang-format off +// Don't format because the order is important here #include - +#include #include #include -#include +// clang-format on #include #include diff --git a/src/main/util/crypto.h b/src/main/util/crypto.h index ad6c83b..072394a 100644 --- a/src/main/util/crypto.h +++ b/src/main/util/crypto.h @@ -1,8 +1,11 @@ #ifndef UTIL_CRYPTO_H #define UTIL_CRYPTO_H -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include diff --git a/src/main/vefxio/vefxio.c b/src/main/vefxio/vefxio.c index 548f951..5d43056 100644 --- a/src/main/vefxio/vefxio.c +++ b/src/main/vefxio/vefxio.c @@ -9,8 +9,11 @@ provides all of the inputs for IIDX then you should replace IIDXIO.DLL instead and not call into this DLL at all. */ -#include +// clang-format off +// Don't format because the order is important here #include +#include +// clang-format on #include #include