1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2025-01-31 11:53:45 +01:00

hook/pro: Fix order of setting up usb hooks

The khack one is actually low level and must come before the
emulation layer which abstracts the libusb0.1 stuff
This commit is contained in:
icex2 2021-03-19 13:54:18 +01:00
parent c2ee8c0583
commit 956a322013

View File

@ -154,8 +154,9 @@ static void prohook_patch_piuio_init(struct prohook_options* options)
// The order of layering the hooks is important here because of deps
// 1. Fix low level libusb thing with init
// 2. Introduce the shim layer to allow adding fakedevs required for forther software emulation
// 3. Turn the ITG 2 piuio kernel hack calls into normal piuio ctrl transfer calls
// 2. Turn the ITG 2 piuio kernel hack calls into normal piuio ctrl transfer calls
// 3. Introduce an abstraction layer to allow, to abstract libusb0.1 and allow adding fakedevs
// required for further software emulation
// 4. Exit module to allow exiting the game with test + service
// 5. Software emulation layer for piuio
//
@ -165,8 +166,8 @@ static void prohook_patch_piuio_init(struct prohook_options* options)
// that have to detour to real hardware again
patch_usb_init_fix_init();
patch_usb_emu_init();
patch_piuio_khack_init();
patch_usb_emu_init();
/* Hook before PIUIO emulation */
if (options->patch.piuio.exit_test_serv) {